Jim Grosbach [Fri, 25 Feb 2011 22:53:20 +0000 (22:53 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126526
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Fri, 25 Feb 2011 22:47:58 +0000 (22:47 +0000)]
Fix bad comment marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126525
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 25 Feb 2011 21:41:48 +0000 (21:41 +0000)]
Allow targets to specify a the type of the RHS of a shift parameterized on the type of the LHS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126518
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Fri, 25 Feb 2011 20:51:27 +0000 (20:51 +0000)]
Add some options for building LLVM in different environments:
--force-configure to force running configure before building.
--extra-llvm-config-flags
--extra-llvm-gcc-config-flags
--extra-gcc-config-flags
Pass additional argument to the various configure invocations.
This also eliminates a default build flavor because explicitly
specifying builds could result in build flavors being run repeatedly.
Finally, turn off fortran builds for the moment because install
appears to be broken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126510
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Fri, 25 Feb 2011 20:42:39 +0000 (20:42 +0000)]
Omit lto.h from the llvmCore result; henceforth, this will be supplied
by clang. Radar
9042056.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126507
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Feb 2011 19:06:35 +0000 (19:06 +0000)]
split this test into arch specific pieces, so the ARM
test isn't run when the arm backend isn't built. This
fixes PR9327
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126500
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 16:30:32 +0000 (16:30 +0000)]
Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126488
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 25 Feb 2011 10:33:33 +0000 (10:33 +0000)]
Revert "SimplifyCFG: GEPs with just one non-constant index are also cheap."
Yes, there are other types than i8* and GEPs on them can produce an add+multiply.
We don't consider that cheap enough to be speculatively executed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126481
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 25 Feb 2011 07:13:35 +0000 (07:13 +0000)]
Update the NoFolder to work with current IRBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126479
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 25 Feb 2011 06:42:42 +0000 (06:42 +0000)]
Add patterns to use post-increment addressing for Neon VST1-lane instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126477
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 25 Feb 2011 03:59:03 +0000 (03:59 +0000)]
Fix formatting of debug helper string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126471
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 25 Feb 2011 01:29:29 +0000 (01:29 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126467
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 01:11:01 +0000 (01:11 +0000)]
Set NumSignBits to 1 if KnownZero/KnownOne are being zero extended. In theory it
is possible to do better if the high bit is set in either KnownZero/KnownOne, but
in practice NumSignBits is always 1 when we are zero extending because nothing
is known about that register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126465
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Fri, 25 Feb 2011 01:10:55 +0000 (01:10 +0000)]
We only want to zero extend the existing information if the bit width is
actually larger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126464
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 25 Feb 2011 01:04:22 +0000 (01:04 +0000)]
Try harder to get the hint by preferring to evict hint interference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126463
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 25 Feb 2011 00:24:46 +0000 (00:24 +0000)]
Each prologue may have multiple vpush instructions to store callee-saved
D registers since the vpush list may not have gaps. Make sure the stack
adjustment instruction isn't moved between them. Ditto for vpop in
epilogues.
Sorry, can't reduce a small test case.
rdar://
9043312
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126457
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 23:26:09 +0000 (23:26 +0000)]
SimplifyCFG: GEPs with just one non-constant index are also cheap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126452
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 24 Feb 2011 23:21:36 +0000 (23:21 +0000)]
Tweak the register allocator priority queue some more.
New live ranges are assigned in long -> short order, but live ranges that have
been evicted at least once are deferred and assigned in short -> long order.
Also disable splitting and spilling for live ranges seen for the first time.
The intention is to create a realistic interference pattern from the heavy live
ranges before starting splitting and spilling around it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126451
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 24 Feb 2011 23:15:43 +0000 (23:15 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126450
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 22:46:11 +0000 (22:46 +0000)]
SimplifyCFG: GEPs with constant indices are cheap enough to be executed unconditionally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126445
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Thu, 24 Feb 2011 21:59:22 +0000 (21:59 +0000)]
Restore r125595 (reverted in r126336) with modifications:
Introduce a variable in the AsmParserExtension whether [] is valid in an
expression. If it is true, parse them like (). Enable this for ELF only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126443
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 21:53:03 +0000 (21:53 +0000)]
remove command line option debugging hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126441
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 24 Feb 2011 21:33:49 +0000 (21:33 +0000)]
In utils/TableGen/ClangSACheckersEmitter.cpp, set the 'Hidden' bit for checkers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126436
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 24 Feb 2011 21:04:06 +0000 (21:04 +0000)]
Switch LTO to use MC. This takes the linking of libxul.so from about 7m to
6m30.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126426
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 21:04:00 +0000 (21:04 +0000)]
Enable DebugInfo support for COFF object files.
Patch by Nathan Jeffords!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126425
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Thu, 24 Feb 2011 21:01:34 +0000 (21:01 +0000)]
Enable support for vector sext and trunc:
Limit the folding of any_ext and sext into the load operation to scalars.
Limit the active-bits trunc optimization to scalars.
Document vector trunc and vector sext in LangRef.
Similar to commit 126080 (for enabling zext).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126424
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 24 Feb 2011 20:18:01 +0000 (20:18 +0000)]
Fix llvm-gcc bootstrap with gnu ld.
The problem was codegen guessing the wrong values and printing
.section .eh_frame,"aMS",@progbits,4
It is not clear at all if Codegen should try to guess, MC is the
one that should know the default flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126421
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 19:09:52 +0000 (19:09 +0000)]
Remove obsolete tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126402
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 19:06:27 +0000 (19:06 +0000)]
Move arch specific tests in arch specific directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126401
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 18:59:38 +0000 (18:59 +0000)]
fit in 80 cols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126399
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 18:49:55 +0000 (18:49 +0000)]
Do not use DIFactory. Use DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126398
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 24 Feb 2011 18:49:30 +0000 (18:49 +0000)]
Do not use DIFactory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126397
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Thu, 24 Feb 2011 13:39:18 +0000 (13:39 +0000)]
Add XCore intrinsic for eeu instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126384
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 24 Feb 2011 12:34:34 +0000 (12:34 +0000)]
test/lit.cfg: Add PATHEXT to 'substitution', to recognize tools on Windows hosts. Thanks to Danil Malyshev!
Some tests on Windows use the "not" utility and fail with an error "program not executable". The reason for this error is that the name of the executable file sended to the "not" without the extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126383
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 24 Feb 2011 11:54:18 +0000 (11:54 +0000)]
Rewrite the vector part of getExtendedTypeAction to make it more
understandable (at least I find it easier to understand like this).
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126382
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 24 Feb 2011 11:03:19 +0000 (11:03 +0000)]
Plug some leaks in edis.
- Don't leak parsed operands during tokenization.
- Don't leak printed insts in llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126381
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:25 +0000 (10:00 +0000)]
Merge information about the number of zero, one, and sign bits of live-out
registers at phis. This enables us to eliminate a lot of pointless zexts during
the DAGCombine phase. This fixes <rdar://problem/
8760114>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126380
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:20 +0000 (10:00 +0000)]
Add a getNumSignBits() method to APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126379
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:16 +0000 (10:00 +0000)]
Add a mechanism for invalidating the LiveOutInfo of a PHI, and use it whenever
a block is visited before all of its predecessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126378
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:13 +0000 (10:00 +0000)]
Track blocks visited in reverse postorder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126377
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:08 +0000 (10:00 +0000)]
Refactor the LiveOutInfo interface into a few methods on FunctionLoweringInfo
and make the actual map private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126376
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Thu, 24 Feb 2011 10:00:04 +0000 (10:00 +0000)]
Have isel visit blocks in reverse postorder rather than an undefined order. This
allows for the information propagated across basic blocks to be merged at phis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126375
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 07:16:14 +0000 (07:16 +0000)]
wire TargetLibraryInfo into simplify libcalls and use it in a couple of
trivial places. This pass needs a lot of work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126367
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 07:12:12 +0000 (07:12 +0000)]
move a massive amount of code out into its own helper function
to reduce nesting. This needs to be turned into a table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126366
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 24 Feb 2011 05:10:56 +0000 (05:10 +0000)]
change instcombine to not turn a call to non-varargs bitcast of
function prototype into a call to a varargs prototype. We do
allow the xform if we have a definition, but otherwise we don't
want to risk that we're changing the abi in a subtle way. On
X86-64, for example, varargs require passing stuff in %al.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126363
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 24 Feb 2011 02:36:52 +0000 (02:36 +0000)]
Fix bug in X86 folding / unfolding table. Int_CMPSDrm and Int_CMPSSrm memory
operands starts at index 2, not 1.
rdar://
9045024
PR9305
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126359
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 24 Feb 2011 01:07:55 +0000 (01:07 +0000)]
Use the same spill slot for all live ranges that descend form the same original
register.
This avoids some silly stack slot shuffling when both sides of a copy get
spilled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126353
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 24 Feb 2011 01:02:32 +0000 (01:02 +0000)]
Depricate PathV1::isAbsolute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126348
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 23 Feb 2011 22:37:04 +0000 (22:37 +0000)]
Use DW_FORM_data2 for DW_AT_language and let users use DW_LANG_lo_user=0x8000 to DW_LANG_hi_user=0xffff range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126339
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 23 Feb 2011 22:35:57 +0000 (22:35 +0000)]
Check only relevant strings in output to increase stability of the tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126338
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 23 Feb 2011 21:43:31 +0000 (21:43 +0000)]
Remove file. Previous commit deleted content, but left the file around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126337
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 23 Feb 2011 21:26:51 +0000 (21:26 +0000)]
Revert r125595, which is an X86-only undocumented assembly syntax extension
enabled for all targets. Non-X86 targets should not have this behavior
enabled by default.
Joerg, if you would like to resubmit with the behavior conditionalized to be
X86-ELF only, that's fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126336
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 23 Feb 2011 20:22:07 +0000 (20:22 +0000)]
Put in the symbol table symbols only used in a .globl statement.
Fixes PR9292.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126330
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Wed, 23 Feb 2011 18:52:05 +0000 (18:52 +0000)]
Add XCore intrinsic for clre instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126322
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Wed, 23 Feb 2011 18:35:59 +0000 (18:35 +0000)]
Add llvm.xcore.waitevent intrinsic. The effect of this intrinsic is to enable
events on the thread and wait until a resource is ready to event. The vector
of the resource that is ready is returned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126320
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 23 Feb 2011 18:26:31 +0000 (18:26 +0000)]
It is safe to ignore LastSplitPoint when the variable is not live out.
No code will be inserted after the split point anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126319
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Wed, 23 Feb 2011 16:46:37 +0000 (16:46 +0000)]
Add XCore intrinsic for the setv instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126315
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Wed, 23 Feb 2011 15:20:16 +0000 (15:20 +0000)]
Fix format for setc instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126314
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Wed, 23 Feb 2011 14:45:03 +0000 (14:45 +0000)]
Add XCore intrinsic for settw instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126313
91177308-0d34-0410-b5e6-
96231b3b80d8
Frits van Bommel [Wed, 23 Feb 2011 13:43:06 +0000 (13:43 +0000)]
Implement TODO for implicit C-array-to-ArrayRef conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126311
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Wed, 23 Feb 2011 11:28:40 +0000 (11:28 +0000)]
Export TARGET_TRIPLE on LLVM.cmake. It is necessary for running tests
on Clang when it builds using LLVM as an external library.
Fixes PR9293.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126309
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Wed, 23 Feb 2011 03:31:28 +0000 (03:31 +0000)]
Fixed a bug in the enhanced disassembler that caused
it to ignore valid uses of FS and GS as additional
base registers in address computations. Added a test
case for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126302
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Wed, 23 Feb 2011 03:29:41 +0000 (03:29 +0000)]
Fixed a bug in the enhanced disassembly tester that
caused it to only parse one line of input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126301
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 23 Feb 2011 02:35:33 +0000 (02:35 +0000)]
Change VFPNeonA8 definition to make the code easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126298
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 23 Feb 2011 02:27:05 +0000 (02:27 +0000)]
Omit private_extern declarations of extern symbols; followup to
r124468. Patch by Rafael Avila de Espindola!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126297
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 23 Feb 2011 02:24:55 +0000 (02:24 +0000)]
More fcopysign correctness and performance fix.
The previous codegen for the slow path (when values are in VFP / NEON
registers) was incorrect if the source is NaN.
The new codegen uses NEON vbsl instruction to copy the sign bit. e.g.
vmov.i32 d1, #0x80000000
vbsl d1, d2, d0
If NEON is not available, it uses integer instructions to copy the sign bit.
rdar://
9034702
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126295
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 23 Feb 2011 00:56:56 +0000 (00:56 +0000)]
Keep track of how many times a live range has been dequeued, and prioritize new ranges.
When a large live range is evicted, it will usually be split when it comes
around again. By deferring evicted live ranges, the splitting happens at a time
when the interference pattern is more realistic. This prevents repeated
splitting and evictions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126282
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 23 Feb 2011 00:29:55 +0000 (00:29 +0000)]
Fix a bug in determining if there is only a single interfering register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126277
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 23 Feb 2011 00:29:52 +0000 (00:29 +0000)]
Be more aggressive about evicting interference.
Use interval sizes instead of spill weights to determine if it is legal to evict
interference. A smaller interval can evict interference if all interfering live
ranges are larger.
Allow multiple interferences to be evicted as along as they are all larger than
the live range being allocated.
Spill weights are still used to select the preferred eviction candidate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126276
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 22 Feb 2011 23:31:46 +0000 (23:31 +0000)]
[AVX] General VUNPCKL codegen support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126264
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 22 Feb 2011 23:30:45 +0000 (23:30 +0000)]
Fix Builder::execute() to more properly pass the desired environment
to tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126263
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 22 Feb 2011 23:01:52 +0000 (23:01 +0000)]
Change the RAGreedy register assignment order so large live ranges are allocated first.
This is based on the observation that long live ranges are more difficult to
allocate, so there is a better chance of solving the puzzle by handling the big
pieces first. The allocator will evict and split long alive ranges when they get
in the way.
RABasic is still using spill weights for its priority queue, so the interface to
the queue has been virtualized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126259
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 22 Feb 2011 23:01:49 +0000 (23:01 +0000)]
80 Col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126258
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 22 Feb 2011 22:48:47 +0000 (22:48 +0000)]
Fix C++0x incompatibility. The signature of std::make_pair<> changes from:
template <class T1, class T2> pair<T1,T2> make_pair(const T1&, const T2&);
to
template <class T1, class T2> pair<V1, V2> make_pair(T1&&, T2&&);
so explicitly specifying the template arguments to make_pair<> is going to break
when C++0x rolls through. Replace them with equivalent std::pair<>. Patch by
James Dennett!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126256
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Tue, 22 Feb 2011 22:25:39 +0000 (22:25 +0000)]
Make LoopDeletion work on loops with multiple edges, as long as the incoming
values from all of the loop's exiting blocks are equal. Patch by Andrew Clinton.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126253
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Tue, 22 Feb 2011 20:40:09 +0000 (20:40 +0000)]
Use the same (%dx) hack for in[bwl] as for out[bwl].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126244
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 22 Feb 2011 19:53:14 +0000 (19:53 +0000)]
VFP single precision arith instructions can go down to NEON pipeline, but on Cortex-A8 only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126238
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 22 Feb 2011 18:56:12 +0000 (18:56 +0000)]
Follow LLVM coding style.
clang uses DBuilder, so it requries corresponding change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126231
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Tue, 22 Feb 2011 17:30:05 +0000 (17:30 +0000)]
Stack alignment is 16 bytes on FreeBSD/i386 too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126226
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Tue, 22 Feb 2011 16:53:11 +0000 (16:53 +0000)]
Bug#9172: Don't use static in file scope, use an attribute on the
parser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126225
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 22 Feb 2011 15:40:20 +0000 (15:40 +0000)]
CMake: remove unnecessary variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126224
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Tue, 22 Feb 2011 08:54:30 +0000 (08:54 +0000)]
MachineConstantPoolValues are not uniqued, so they need to be freed if they
share entries. Add a DenseSet to MachineConstantPool for the MachineCPVs that
it owns.
This will hopefully fix the MC/ARM/elf-reloc-01.ll failure on the leaks bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126218
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 08:22:54 +0000 (08:22 +0000)]
Revert r126195, "test/CodeGen/X86/vec_cast.ll: Mark as XFAIL: migw,win32 for workaround of PR8311."
It seems it affected configuration --target=i686-pc-mingw32, I don't know and will investigate why.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126217
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:59 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126216
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:51 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126215
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:42 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126214
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:33 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126213
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:25 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126212
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:17 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
On @foobar(double %d, double* %x),
AMD64: (%xmm0, %rdi)
Win64: (%xmm0, %rdx) (not %rcx!)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126211
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:08 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126210
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:21:01 +0000 (07:21 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126209
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:52 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126208
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:44 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126207
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:35 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126206
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:26 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126205
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:18 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126204
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:10 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126203
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:20:02 +0000 (07:20 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126202
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:19:54 +0000 (07:19 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126201
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 22 Feb 2011 07:19:46 +0000 (07:19 +0000)]
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126200
91177308-0d34-0410-b5e6-
96231b3b80d8