Manman Ren [Thu, 5 Sep 2013 19:44:52 +0000 (19:44 +0000)]
Trying to un-break the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190092
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 5 Sep 2013 19:41:10 +0000 (19:41 +0000)]
R600: Fix i64 to i32 trunc on SI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190091
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 5 Sep 2013 19:15:21 +0000 (19:15 +0000)]
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190090
91177308-0d34-0410-b5e6-
96231b3b80d8
Yunzhong Gao [Thu, 5 Sep 2013 19:14:26 +0000 (19:14 +0000)]
Improve handling of .file, .include and .incbin directives to
allow escaped octal character sequences.
The patch was discussed in Phabricator. See:
http://llvm-reviews.chandlerc.com/D1289
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190089
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Thu, 5 Sep 2013 18:48:31 +0000 (18:48 +0000)]
Debug Info: Use identifier to reference DIType in base type field of
ptr_to_member.
We introduce a new class DITypeRef that represents a reference to a DIType.
It wraps around a Value*, which can be either an identifier in MDString
or an actual MDNode. The class has a helper function "resolve" that
finds the actual MDNode for a given DITypeRef.
We specialize getFieldAs to return a field that is a reference to a
DIType. To correctly access the base type field of ptr_to_member,
getClassType now calls getFieldAs<DITypeRef> to return a DITypeRef.
Also add a typedef for DITypeIdentifierMap and a helper
generateDITypeIdentifierMap in DebugInfo.h. In DwarfDebug.cpp, we keep
a DITypeIdentifierMap and call generateDITypeIdentifierMap to actually
populate the map.
Verifier is updated accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190081
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 5 Sep 2013 18:38:09 +0000 (18:38 +0000)]
R600: Add support for local memory atomic add
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190080
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 5 Sep 2013 18:38:03 +0000 (18:38 +0000)]
R600: Expand SELECT nodes rather than custom lowering them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190079
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 5 Sep 2013 18:37:57 +0000 (18:37 +0000)]
R600: Fix incorrect LDS size calculation
GlobalAdderss nodes that appeared in more than one basic block were
being counted twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190078
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 5 Sep 2013 18:37:52 +0000 (18:37 +0000)]
R600/SI: Don't emit S_WQM_B64 instruction for compute shaders
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190077
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 5 Sep 2013 18:37:45 +0000 (18:37 +0000)]
R600: Fix segfault in R600TextureIntrinsicReplacer
This pass was segfaulting when it ran into a non-intrinsic function
call. Function calls are not supported, so now instead of segfaulting,
we will get an assertion failure with a nice error message.
I'm not sure how to test this using lit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190076
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Sep 2013 18:20:16 +0000 (18:20 +0000)]
Move accelerator table defines and constants to Dwarf.h since
we're proposing it for DWARF5.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190074
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Sep 2013 16:55:35 +0000 (16:55 +0000)]
Rename enums to match convention and remove superfluous "dwarf" in names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190067
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Sep 2013 16:46:43 +0000 (16:46 +0000)]
Reformat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190064
91177308-0d34-0410-b5e6-
96231b3b80d8
Joey Gouly [Thu, 5 Sep 2013 16:05:45 +0000 (16:05 +0000)]
[ARMv8] Add some missing tests for DSB/DMB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190060
91177308-0d34-0410-b5e6-
96231b3b80d8
Joey Gouly [Thu, 5 Sep 2013 15:35:24 +0000 (15:35 +0000)]
[ARMv8] Implement the new DMB/DSB operands.
This removes the custom ISD Node: MEMBARRIER and replaces it
with an intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190055
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Barton [Thu, 5 Sep 2013 14:14:19 +0000 (14:14 +0000)]
Add AArch32 DCPS{1,2,3} and HLT instructions.
These were pretty straightforward instructions, with some assembly support
required for HLT.
The ARM assembler is keen to split the instruction mnemonic into a
(non-existent) 'H' instruction with the LT condition code. An exception for
HLT is needed.
HLT follows the same rules as BKPT when in IT blocks, so the special BKPT
hadling code has been adapted to handle HLT also.
Regression tests added including diagnostic tests for out of range immediates
and illegal condition codes, as well as negative tests for pre-ARMv8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190053
91177308-0d34-0410-b5e6-
96231b3b80d8
Tilmann Scheller [Thu, 5 Sep 2013 11:59:43 +0000 (11:59 +0000)]
Reverting 190043 for now.
Solution is not sufficient to prevent 'mov pc, lr' being emitted for jump table code.
Test case doesn't trigger the added functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190047
91177308-0d34-0410-b5e6-
96231b3b80d8
Tilmann Scheller [Thu, 5 Sep 2013 11:10:31 +0000 (11:10 +0000)]
ARM: Add GPR register class excluding LR for use with the ADR instruction.
This improves code generation for jump tables by avoiding the emission of "mov pc, lr" which could fool the processor into believing this is a return from a function causing mispredicts. The code generation logic for jump tables uses ADR to materialize the address of the jump target.
Patch by Daniel Stewart!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190043
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Thu, 5 Sep 2013 10:36:45 +0000 (10:36 +0000)]
[SystemZ] Add NC, OC and XC
For now these are just used to handle scalar ANDs, ORs and XORs in which
all operands are memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190041
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Sep 2013 08:19:58 +0000 (08:19 +0000)]
Declare missing dependency on AliasAnalysis. Patch by Liu Xin!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190035
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Sep 2013 06:53:59 +0000 (06:53 +0000)]
Fix typos in assert message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190034
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Thu, 5 Sep 2013 05:32:16 +0000 (05:32 +0000)]
[Sparc] Correctly handle call to functions with ReturnsTwice attribute.
In sparc, setjmp stores only the registers %fp, %sp, %i7 and %o7. longjmp restores
the stack, and the callee-saved registers (all local/in registers: %i0-%i7, %l0-%l7)
using the stored %fp and register windows. However, this does not guarantee that the longjmp
will restore the registers, as they were when the setjmp was called. This is because these
registers may be clobbered after returning from setjmp, but before calling longjmp.
This patch prevents the registers %i0-%i5, %l0-l7 to live across the setjmp call using the register mask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190033
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Thu, 5 Sep 2013 02:09:34 +0000 (02:09 +0000)]
msbuild: Add clang's compiler-rt libs to the LibraryPath
This allows linking libraries like the asan RTL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190028
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 5 Sep 2013 00:54:52 +0000 (00:54 +0000)]
Fix comments to reflect reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190021
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Sep 2013 00:22:35 +0000 (00:22 +0000)]
Formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190019
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 5 Sep 2013 00:01:17 +0000 (00:01 +0000)]
Clean up some whitespace and comment formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190015
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 23:54:00 +0000 (23:54 +0000)]
mi-sched: Force bottom up scheduling for generic targets.
Fast register pressure tracking currently only takes effect during
bottom up scheduling. Forcing this is a bit faster and simpler for
targets that don't have many scheduling constraints and don't need
top-down scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190014
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Wed, 4 Sep 2013 23:53:44 +0000 (23:53 +0000)]
Add names for mach-o permissions bits and use the symbol names in place of magic numbers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190013
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 23:38:29 +0000 (23:38 +0000)]
Move default dwarf version enum into the llvm dwarf constants rather
than the spec dwarf constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190011
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Kledzik [Wed, 4 Sep 2013 23:27:21 +0000 (23:27 +0000)]
fix typo in enum name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190009
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Sep 2013 22:35:41 +0000 (22:35 +0000)]
Add missing header line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190004
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Sep 2013 22:35:29 +0000 (22:35 +0000)]
Use ArrayRef instead of explicit container.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190003
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 22:21:24 +0000 (22:21 +0000)]
Remove hack ensuring that darwin didn't produce dwarf > 3 for modules
without a limiting factor.
Update all testcases accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190002
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 21:36:52 +0000 (21:36 +0000)]
Revert "Revert r189902 as the workaround shouldn't be necessary anymore."
Needs testcase updates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190000
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 21:26:56 +0000 (21:26 +0000)]
Revert r189902 as the workaround shouldn't be necessary anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189999
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 21:23:23 +0000 (21:23 +0000)]
Expand and rewrite comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189998
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:12:05 +0000 (21:12 +0000)]
comment typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189997
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:20 +0000 (21:00 +0000)]
Remove dead subtree limit code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189995
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:18 +0000 (21:00 +0000)]
-view-misched-dags, better pruning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189994
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:16 +0000 (21:00 +0000)]
mi-sched: DEBUG cleanup, call tracePick for unidirectional scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189993
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:13 +0000 (21:00 +0000)]
80 columns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189992
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:11 +0000 (21:00 +0000)]
mi-sched: Suppress register pressure tracking when the scheduling window is too small.
If the instruction window is < NumRegs/2, pressure tracking is not
likely to be effective. The scheduler has to process a very large
number of tiny blocks. We want this to be fast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189991
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:08 +0000 (21:00 +0000)]
mi-sched: Load clustering is a bit to expensive to enable unconditionally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189990
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:05 +0000 (21:00 +0000)]
mi-sched: Reuse an invalid HazardRecognizer to save compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189989
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 21:00:02 +0000 (21:00 +0000)]
mi-sched: bypass heuristic checks when regpressure tracking is disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189988
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 4 Sep 2013 20:59:59 +0000 (20:59 +0000)]
Added -misched-regpressure option.
Register pressure tracking is half the complexity of the
scheduler. It's useful to be able to turn it off for compile time and
performance comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189987
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Wed, 4 Sep 2013 20:51:06 +0000 (20:51 +0000)]
Change swift/vldm test case to be less dependent on allocation order
'Force' values in registers using the calling convention. Now, we only depend on
the calling convention and that the allocator performs copy coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189985
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 20:08:46 +0000 (20:08 +0000)]
Rename some variables to match the style guide.
I am about to patch this code, and this makes the diff far more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189982
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Wed, 4 Sep 2013 19:53:54 +0000 (19:53 +0000)]
R600: Use shared op optimization when checking cycle compatibility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189981
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Wed, 4 Sep 2013 19:53:46 +0000 (19:53 +0000)]
R600: Non vector only instruction can be scheduled on trans unit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189980
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Wed, 4 Sep 2013 19:53:30 +0000 (19:53 +0000)]
R600: Use SchedModel enum for is{Trans,Vector}Only functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189979
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Wed, 4 Sep 2013 19:53:22 +0000 (19:53 +0000)]
R600: Remove fmul.v4f32.ll test which is redundant with fmul.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189978
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 19:53:21 +0000 (19:53 +0000)]
Unify and clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189977
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 19:19:32 +0000 (19:19 +0000)]
Merge these 2 tests in a single file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189975
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Sep 2013 19:08:44 +0000 (19:08 +0000)]
ARM: Teach A15 SDOptimizer to properly handle D-reg by-lane.
These instructions, such as vmul.f32, require the second source operand to
be in D0-D15 rather than the full D0-D31. When optimizing, make sure to
account for that by constraining the register class of a replacement virtual
register to be compatible with the virtual register(s) it's replacing.
I've been unsuccessful in creating a non-fragile regression test. This issue
was detected by the LLVM nightly test suite running on an A15 (Bullet).
PR17093: http://llvm.org/bugs/show_bug.cgi?id=17093
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189972
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 18:53:21 +0000 (18:53 +0000)]
Small simplification given that insert of an empty range is a nop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189971
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Sep 2013 18:48:12 +0000 (18:48 +0000)]
Remove 'param' label from comments. They aren't used properly here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189970
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 18:37:36 +0000 (18:37 +0000)]
Refactor duplicated logic to a helper function.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189969
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 18:16:02 +0000 (18:16 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189967
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Wed, 4 Sep 2013 18:02:13 +0000 (18:02 +0000)]
MemoryBufer: add a test: check that a file with size that is a multiple of the
page size can be null terminated correctly by MemoryBuffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189965
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 17:44:24 +0000 (17:44 +0000)]
Rename variables to match the style guide and clang-format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189962
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Wed, 4 Sep 2013 17:41:16 +0000 (17:41 +0000)]
Swift: Only build vldm/vstm with q register aligned register lists
Unaligned vldm/vstm need more uops and therefore are slower in general on swift.
radar://
14522102
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189961
91177308-0d34-0410-b5e6-
96231b3b80d8
Silviu Baranga [Wed, 4 Sep 2013 17:05:18 +0000 (17:05 +0000)]
Fix scheduling for vldm/vstm instructions that load/store more than 32 bytes on Cortex-A9. This also makes the existing code more compact.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189958
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 16:09:01 +0000 (16:09 +0000)]
Revert "Add r159136 back now that pr13124 has been fixed."
This reverts commit r189886.
I found a corner case where this optimization is not valid:
Say we have a "linkonce_odr unnamed_addr" in two translation units:
* In TU 1 this optimization kicks in and makes it hidden.
* In TU 2 it gets const merged with a constant that is *not* unnamed_addr,
resulting in a non unnamed_addr constant with default visibility.
* The static linker rules for combining visibility them produce a hidden
symbol, which is incorrect from the point of view of the non unnamed_addr
constant.
The one place we can do this is when we know that the symbol is not used from
another TU in the same shared object, i.e., during LTO. I will move it there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189954
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexander Kornienko [Wed, 4 Sep 2013 16:00:12 +0000 (16:00 +0000)]
Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32.
Summary:
This is needed so we can use generic columnWidthUTF8 in clang-format on
win32 simultaneously with a separate system-dependent implementations of
isPrint/columnWidth in TextDiagnostic.cpp to avoid attempts to print Unicode
characters using narrow-character interfaces (which is not supported on Windows,
and we'll have to figure out how to handle this).
Reviewers: jordan_rose
Reviewed By: jordan_rose
CC: llvm-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1559
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189952
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 15:33:34 +0000 (15:33 +0000)]
Error on linking appending globals with different unnamed_addr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189950
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Wed, 4 Sep 2013 15:15:20 +0000 (15:15 +0000)]
[Sparc] Fix an assertion failure while lowering fcmp on long double.
This assertion is triggered because an integer constant is created with wrong
type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189948
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 14:59:03 +0000 (14:59 +0000)]
Fix linking of unnamed_addr in functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189945
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 14:40:49 +0000 (14:40 +0000)]
Rename in preparation for adding tests for function linking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189944
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 14:35:48 +0000 (14:35 +0000)]
Use CHECK-DAG instead of sort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189942
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 4 Sep 2013 14:12:26 +0000 (14:12 +0000)]
Support/Process: Add comments about PageSize and AllocationGranularity on Cygwin and Win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189940
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 4 Sep 2013 14:12:19 +0000 (14:12 +0000)]
MemoryBuffer.cpp: Don't peek the next page if file is multiple of *physical* pagesize(4k) but is not multiple of AllocationGranularity(64k), when a null terminator is required, on cygwin and win32.
For example, r189780's SparcISelLowering.cpp has the size 98304. It crashed clang to touch a null terminator on cygwin.
FIXME: It's not good to hardcode 4096 here. dwPageSize shows 4096.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189939
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 4 Sep 2013 14:12:12 +0000 (14:12 +0000)]
Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189938
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 4 Sep 2013 14:05:09 +0000 (14:05 +0000)]
Fix linking of unnamed_addr.
This was regression from r134829. When linking we have to be conservative. If
one of the symbols has a significant address, then the result should have it
too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189935
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 4 Sep 2013 11:57:17 +0000 (11:57 +0000)]
InstCombine: allow unmasked icmps to be combined with logical ops
"(icmp op i8 A, B)" is equivalent to "(icmp op i8 (A & 0xff), B)" as a
degenerate case. Allowing this as a "masked" comparison when analysing "(icmp)
&/| (icmp)" allows us to combine them in more cases.
rdar://problem/
7625728
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189931
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 4 Sep 2013 11:57:13 +0000 (11:57 +0000)]
InstCombine: look for masked compares with subset relation
Even in cases which aren't universally optimisable like "(A & B) != 0 && (A &
C) != 0", the masks can make one of the comparisons completely redundant. In
this case, since we've gone to the effort of spotting masked comparisons we
should combine them.
rdar://problem/
7625728
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189930
91177308-0d34-0410-b5e6-
96231b3b80d8
Hao Liu [Wed, 4 Sep 2013 09:28:24 +0000 (09:28 +0000)]
Inplement aarch64 neon instructions in AdvSIMD(shift). About 24 shift instructions:
sshr,ushr,ssra,usra,srshr,urshr,srsra,ursra,sri,shl,sli,sqshlu,sqshl,uqshl,shrn,sqrshrun,sqshrn,uqshr,sqrshrn,uqrshrn,sshll,ushll
and 4 convert instructions:
scvtf,ucvtf,fcvtzs,fcvtzu
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189925
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 05:08:32 +0000 (05:08 +0000)]
Use Intrinsic::ID for the pattern match templates, fixing a signed/unsigned
comparison warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189921
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Wed, 4 Sep 2013 04:39:38 +0000 (04:39 +0000)]
Revert "Revert "Remove the darwin gdb option, that version of gdb is now dead and the rest of the compatibility should be done on a dwarf-N level.""
This reverts commit r189913.
Talked with Eric on IRC. I am going to XFAIL the failing test since it
is using what Eric described as "the member hack" which was needed on
that old GDB.
Sorry for the noise!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189914
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Wed, 4 Sep 2013 04:31:56 +0000 (04:31 +0000)]
Revert "Remove the darwin gdb option, that version of gdb is now dead and the rest of the compatibility should be done on a dwarf-N level."
This reverts commit r189903.
This commit broke the phase 1 buildbot for a while.
http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/6684
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189913
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Wed, 4 Sep 2013 04:26:09 +0000 (04:26 +0000)]
Add llvm namespace to llvm::next.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189912
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Wed, 4 Sep 2013 04:19:01 +0000 (04:19 +0000)]
Use llvm::next() instead of incrementing begin iterators of std::vector.
Iterator of std::vector may be implemented as a raw pointer. In
this case begin iterators are rvalues and cannot be incremented.
For example, this is the case with STDCXX implementation of vector.
Patch by Konstantin Tokarev <annulen@yandex.ru>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189911
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 4 Sep 2013 02:10:32 +0000 (02:10 +0000)]
MCDwarf.h: Prune a few stray \param(s). [-Wdocumentation]
\param should be used to describe individual parameters. Use a command like \a or \c for visual enhancements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189905
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 02:02:10 +0000 (02:02 +0000)]
Remove the darwin gdb option, that version of gdb is now dead and
the rest of the compatibility should be done on a dwarf-N level.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189903
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 01:38:30 +0000 (01:38 +0000)]
Make the default dwarf version 3 for darwin when we can't find one
in the module. Add a FIXME with a comment about darwin's ld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189902
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Sep 2013 00:58:10 +0000 (00:58 +0000)]
It's a very large constant. Say so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189899
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 3 Sep 2013 23:34:36 +0000 (23:34 +0000)]
Add r159136 back now that pr13124 has been fixed.
Original message:
If a constant or a function has linkonce_odr linkage and unnamed_addr, mark
hidden. Being linkonce_odr guarantees that it is available in every dso that
needs it. Being a constant/function with unnamed_addr guarantees that the
copies don't have to be merged.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189886
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 3 Sep 2013 23:32:55 +0000 (23:32 +0000)]
[lit] Allow config files to pass arbitrary values to child configs.
- This aligns with how existing test suites end up wanting to use the local
config files, conceptually it makes sense to consider them to be inherited.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189885
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 3 Sep 2013 23:02:00 +0000 (23:02 +0000)]
X86: Mark non-crashing report_fatal_errors() as such.
Previously, the clang crash handling code would kick in and give a crash
report for these, even though they're not that sort of error.
rdar://
14882264
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189878
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Tue, 3 Sep 2013 22:40:56 +0000 (22:40 +0000)]
[objc-arc] Remove dead code from previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189870
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Tue, 3 Sep 2013 22:40:54 +0000 (22:40 +0000)]
[objc-arc] Turn off the objc_retainBlock -> objc_retain optimization.
The reason that I am turning off this optimization is that there is an
additional case where a block can escape that has come up. Specifically, this
occurs when a block is used in a scope outside of its current scope.
This can cause a captured retainable object pointer whose life is preserved by
the objc_retainBlock to be deallocated before the block is invoked.
An example of the code needed to trigger the bug is:
----
\#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
void (^somethingToDoLater)();
{
NSObject *obj = [NSObject new];
somethingToDoLater = ^{
[obj self]; // Crashes here
};
}
NSLog(@"test.");
somethingToDoLater();
return 0;
}
----
In the next commit, I remove all the dead code that results from this.
Once I put in the fixing commit I will bring back the tests that I deleted in
this commit.
rdar://
14802782.
rdar://
14868830.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189869
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Tue, 3 Sep 2013 22:40:50 +0000 (22:40 +0000)]
[objc-arc] Move some block tests from basic.ll -> retain-block.ll and add some missing CHECK-LABELS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189868
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Sep 2013 22:16:52 +0000 (22:16 +0000)]
Add comments to the CFI instructions and reformat with clang-format. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189864
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 3 Sep 2013 22:08:28 +0000 (22:08 +0000)]
Fix copy and pasto with CMake files for unittest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189863
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 3 Sep 2013 21:57:57 +0000 (21:57 +0000)]
Add a hashing routine that handles hashing types. Add a test for
hashing the contents of DW_FORM_data1 on top of a type with attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189862
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 3 Sep 2013 21:57:50 +0000 (21:57 +0000)]
Sentences end with periods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189861
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 3 Sep 2013 21:33:17 +0000 (21:33 +0000)]
Enable late-vectorization by default.
This patch changes the default setting for the LateVectorization flag that controls where the loop-vectorizer is ran.
Perf gains:
SingleSource/Benchmarks/Shootout/matrix -37.33%
MultiSource/Benchmarks/PAQ8p/paq8p -22.83%
SingleSource/Benchmarks/Linpack/linpack-pc -16.22%
SingleSource/Benchmarks/Shootout-C++/ary3 -15.16%
MultiSource/Benchmarks/TSVC/NodeSplitting-flt/NodeSplitting-flt -10.34%
MultiSource/Benchmarks/TSVC/NodeSplitting-dbl/NodeSplitting-dbl -7.12%
Regressions:
SingleSource/Benchmarks/Misc/lowercase 15.10%
MultiSource/Benchmarks/TSVC/Equivalencing-flt/Equivalencing-flt 13.18%
SingleSource/Benchmarks/Shootout-C++/matrix 8.27%
SingleSource/Benchmarks/CoyoteBench/lpbench 7.30%
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189858
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 3 Sep 2013 21:05:51 +0000 (21:05 +0000)]
Fix grammar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189855
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 3 Sep 2013 21:05:48 +0000 (21:05 +0000)]
Teach InstCombineLoadCast about address spaces.
This is another one that doesn't matter much,
but uses the right GEP index types in the first
place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189854
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Tue, 3 Sep 2013 21:05:15 +0000 (21:05 +0000)]
Use type form of getIntPtrType in alloca visitor.
This doesn't actually matter, since alloca is always
0 address space, but this is more consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189853
91177308-0d34-0410-b5e6-
96231b3b80d8