oota-llvm.git
13 years agoX86 byval copies no longer always_inline. <rdar://problem/8706628>
Stuart Hastings [Wed, 9 Mar 2011 21:10:30 +0000 (21:10 +0000)]
X86 byval copies no longer always_inline.  <rdar://problem/8706628>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127359 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a testcase for the addc improvements introduced some commits ago. Patch by Akira...
Bruno Cardoso Lopes [Wed, 9 Mar 2011 21:05:32 +0000 (21:05 +0000)]
Add a testcase for the addc improvements introduced some commits ago. Patch by Akira Hatanaka

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127358 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRe-enable test and hope to silence the buildbots
Bruno Cardoso Lopes [Wed, 9 Mar 2011 21:00:16 +0000 (21:00 +0000)]
Re-enable test and hope to silence the buildbots

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127357 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agotry to make o32 cc tests less specific to silence some buildbots. The test isn't...
Bruno Cardoso Lopes [Wed, 9 Mar 2011 20:59:05 +0000 (20:59 +0000)]
try to make o32 cc tests less specific to silence some buildbots. The test isn't enabled yet, this is will be done in a subsequent commit. Patch by Akira Hatanaka.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127356 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoLLVM combines the offset mode of A8.6.199 A1 & A2 into STRBT.
Johnny Chen [Wed, 9 Mar 2011 20:01:14 +0000 (20:01 +0000)]
LLVM combines the offset mode of A8.6.199 A1 & A2 into STRBT.
The insufficient encoding information of the combined instruction confuses the decoder wrt
UQADD16.  Add extra logic to recover from that.

Fixed an assert reported by Sean Callanan

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127354 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake these options hidden to reduce the amount of text -help puts on the
Eric Christopher [Wed, 9 Mar 2011 19:46:51 +0000 (19:46 +0000)]
Make these options hidden to reduce the amount of text -help puts on the
command line, they'll still be seen with -help-hidden.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127353 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThese llvm.dbg.* constants are not used anymore.
Devang Patel [Wed, 9 Mar 2011 19:41:33 +0000 (19:41 +0000)]
These llvm.dbg.* constants are not used anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127352 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake physreg coalescing independent on the number of uses of the virtual register.
Jakob Stoklund Olesen [Wed, 9 Mar 2011 19:27:06 +0000 (19:27 +0000)]
Make physreg coalescing independent on the number of uses of the virtual register.

The damage done by physreg coalescing only depends on the number of instructions
the extended physreg live range covers. This fixes PR9438.

The heuristic is still luck-based, and physreg coalescing really should be
disabled completely. We need a register allocator with better hinting support
before that is possible.

Convert a test to FileCheck and force spilling by inserting an extra call. The
previous spilling behavior was dependent on misguided physreg coalescing
decisions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127351 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDelete a test case that is very sensitive to coalescer behavior.
Jakob Stoklund Olesen [Wed, 9 Mar 2011 19:27:02 +0000 (19:27 +0000)]
Delete a test case that is very sensitive to coalescer behavior.

The test is derived from an old miscompilation of
MultiSource/Benchmarks/VersaBench/8b10b which is run regularly, so we are not
losing coverage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127350 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoImprove varags handling, with testcases. Patch by Sasa Stankovic
Bruno Cardoso Lopes [Wed, 9 Mar 2011 19:22:22 +0000 (19:22 +0000)]
Improve varags handling, with testcases. Patch by Sasa Stankovic

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127349 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThis test case should work with list-ilp or list-burr.
Andrew Trick [Wed, 9 Mar 2011 19:17:10 +0000 (19:17 +0000)]
This test case should work with list-ilp or list-burr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127348 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoImprove pre-RA-sched register pressure tracking for duplicate operands.
Andrew Trick [Wed, 9 Mar 2011 19:12:43 +0000 (19:12 +0000)]
Improve pre-RA-sched register pressure tracking for duplicate operands.
This helps cases like 2008-07-19-movups-spills.ll, but doesn't have an obvious impact on benchmarks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127347 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd createELFObjectTargetWriter method to TargetAsmBackend, which enables constructio...
Jan Sjödin [Wed, 9 Mar 2011 18:44:41 +0000 (18:44 +0000)]
Add createELFObjectTargetWriter method to TargetAsmBackend, which enables construction of non-standard ELFObjectWriters that can be used in MCJIT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127346 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMissing file from previous commmit (127341) for InitializeTargetAsmParser function.
Jan Sjödin [Wed, 9 Mar 2011 18:36:40 +0000 (18:36 +0000)]
Missing file from previous commmit (127341) for InitializeTargetAsmParser function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127345 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd constructors to MCElfStreamer and MCObjectStreamer to take an extra MCAssembler...
Jan Sjödin [Wed, 9 Mar 2011 17:33:05 +0000 (17:33 +0000)]
Add constructors to MCElfStreamer and MCObjectStreamer to take an extra MCAssembler * argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127343 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoWhen SCEV can determine the loop test is X < X, set ExactBECount=0.
Andrew Trick [Wed, 9 Mar 2011 17:29:58 +0000 (17:29 +0000)]
When SCEV can determine the loop test is X < X, set ExactBECount=0.
When ExactBECount is a constant, use it for MaxBECount.
When MaxBECount cannot be computed, replace it with ExactBECount.
Fixes PR9424.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127342 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd InitializeNativeAsmParser function.
Jan Sjödin [Wed, 9 Mar 2011 17:25:46 +0000 (17:25 +0000)]
Add InitializeNativeAsmParser function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127341 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agowhitespace
Andrew Trick [Wed, 9 Mar 2011 17:23:39 +0000 (17:23 +0000)]
whitespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127340 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix typo, make helper static.
Benjamin Kramer [Wed, 9 Mar 2011 16:19:12 +0000 (16:19 +0000)]
Fix typo, make helper static.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127335 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoProcess some link components that map to other expandable components
Oscar Fuentes [Wed, 9 Mar 2011 14:44:46 +0000 (14:44 +0000)]
Process some link components that map to other expandable components
before the main loop. This is necessary because the loop ignores the
items added to `link_components' after it is entered.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127333 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove unused virtual dtor.
Benjamin Kramer [Wed, 9 Mar 2011 14:20:28 +0000 (14:20 +0000)]
Remove unused virtual dtor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127331 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTarget/X86: Tweak va_arg for Win64 not to miss taking va_start when number of fixed...
NAKAMURA Takumi [Wed, 9 Mar 2011 11:33:15 +0000 (11:33 +0000)]
Target/X86: Tweak va_arg for Win64 not to miss taking va_start when number of fixed args > 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127328 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMakefile.rules: [PR2928] "make install" may install include files along explicit...
NAKAMURA Takumi [Wed, 9 Mar 2011 09:11:27 +0000 (09:11 +0000)]
Makefile.rules: [PR2928] "make install" may install include files along explicit pattern, not to install CMake's building stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127325 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix two cases I forgot to update when doing a mental "getSwappedPredicate".
Nick Lewycky [Wed, 9 Mar 2011 08:20:06 +0000 (08:20 +0000)]
Fix two cases I forgot to update when doing a mental "getSwappedPredicate".
Thanks Duncan Sands!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127323 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a test case for r127320.
Cameron Zwarich [Wed, 9 Mar 2011 08:11:02 +0000 (08:11 +0000)]
Add a test case for r127320.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127321 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix a crasher introduced by r127317 that is seen on the bots when using an
Cameron Zwarich [Wed, 9 Mar 2011 07:34:11 +0000 (07:34 +0000)]
Fix a crasher introduced by r127317 that is seen on the bots when using an
alloca as both integer and floating-point vectors of the same size. Bugpoint is
not cooperating with me, but I'll try to find a manual testcase tomorrow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127320 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd another micro-optimization. Apologies for the lack of refactoring, but I
Nick Lewycky [Wed, 9 Mar 2011 06:26:03 +0000 (06:26 +0000)]
Add another micro-optimization. Apologies for the lack of refactoring, but I
gave up when I realized I couldn't come up with a good name for what the
refactored function would be, to describe what it does.

This is PR9343 test12, which is test3 with arguments reordered. Whoops!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127318 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd support to scalar replacement for partial vector accesses of an alloca, e.g.
Cameron Zwarich [Wed, 9 Mar 2011 05:43:05 +0000 (05:43 +0000)]
Add support to scalar replacement for partial vector accesses of an alloca, e.g.
a union of a float, <2 x float>, and <4 x float>. This mostly comes up with the
use of vector intrinsics, especially in NEON when programmers know the layout of
the register file. This enables codegen to eliminate a lot of the subregister
traffic it would otherwise generate.

This commit only enables this for a small number of floating-point cases, but a
lot more integer cases. I assume this is okay for all ports, but I did not do
extensive testing of the quality of code involving i512 vectors and the like. If
there is a use case where this generates worse code than before, let me know and
we can scale it back.

This fixes <rdar://problem/9036264>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127317 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove vector type merging to a separate function in preparation for it getting
Cameron Zwarich [Wed, 9 Mar 2011 05:43:01 +0000 (05:43 +0000)]
Move vector type merging to a separate function in preparation for it getting
more complicated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127316 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a RUN line to the test case to make it functional. <rdar://problem/9055247>
Stuart Hastings [Wed, 9 Mar 2011 04:02:40 +0000 (04:02 +0000)]
Add a RUN line to the test case to make it functional.  <rdar://problem/9055247>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127312 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a virtual dtor to Delegate to silence -Wnon-virtual-dtor
Matt Beaumont-Gay [Wed, 9 Mar 2011 04:02:15 +0000 (04:02 +0000)]
Add a virtual dtor to Delegate to silence -Wnon-virtual-dtor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127311 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTest cases for r127309. <rdar://problem/9055247>
Stuart Hastings [Wed, 9 Mar 2011 03:59:52 +0000 (03:59 +0000)]
Test cases for r127309.  <rdar://problem/9055247>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127310 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoBuild bots hate me.
Bill Wendling [Wed, 9 Mar 2011 01:37:39 +0000 (01:37 +0000)]
Build bots hate me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127307 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPR9346: Prevent SimplifyDemandedBits from incorrectly introducing
Eli Friedman [Wed, 9 Mar 2011 01:28:35 +0000 (01:28 +0000)]
PR9346: Prevent SimplifyDemandedBits from incorrectly introducing
INT_MIN % -1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127306 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTestcase for r127301.
Bill Wendling [Wed, 9 Mar 2011 01:05:00 +0000 (01:05 +0000)]
Testcase for r127301.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127304 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a LiveRangeEdit::Delegate protocol.
Jakob Stoklund Olesen [Wed, 9 Mar 2011 00:57:29 +0000 (00:57 +0000)]
Add a LiveRangeEdit::Delegate protocol.

This will we used for keeping register allocator data structures up to date
while LiveRangeEdit is trimming live intervals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127300 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPR9420; an instruction before an unreachable is guaranteed not to have any
Eli Friedman [Wed, 9 Mar 2011 00:48:33 +0000 (00:48 +0000)]
PR9420; an instruction before an unreachable is guaranteed not to have any
reachable uses, but there still might be uses in dead blocks.  Use the
standard solution of replacing all the uses with undef.  This is
a rare case because it's very sensitive to phase ordering in SimplifyCFG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127299 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix testcase.
Eric Christopher [Wed, 9 Mar 2011 00:41:41 +0000 (00:41 +0000)]
Fix testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127298 91177308-0d34-0410-b5e6-96231b3b80d8

13 years ago* Correct encoding for VSRI.
Bill Wendling [Wed, 9 Mar 2011 00:33:17 +0000 (00:33 +0000)]
* Correct encoding for VSRI.
* Add tests for VSRI and VSLI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127297 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDelete dead code.
Jakob Stoklund Olesen [Wed, 9 Mar 2011 00:07:39 +0000 (00:07 +0000)]
Delete dead code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127295 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCorrect the encoding for VRSRA and VSRA instructions.
Bill Wendling [Wed, 9 Mar 2011 00:00:35 +0000 (00:00 +0000)]
Correct the encoding for VRSRA and VSRA instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127294 91177308-0d34-0410-b5e6-96231b3b80d8

13 years ago* Fix VRSHR and VSHR to have the correct encoding for the immediate.
Bill Wendling [Tue, 8 Mar 2011 23:48:09 +0000 (23:48 +0000)]
* Fix VRSHR and VSHR to have the correct encoding for the immediate.
* Update the NEON shift instruction test to expect what 'as' produces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127293 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDelete dead code after rematerializing.
Jakob Stoklund Olesen [Tue, 8 Mar 2011 22:46:11 +0000 (22:46 +0000)]
Delete dead code after rematerializing.

LiveRangeEdit::eliminateDeadDefs() will eventually be used by coalescing,
splitting, and spilling for dead code elimination. It can delete chains of dead
instructions as long as there are no dependency loops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127287 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agollvm.dbg.declare intrinsic does not use any llvm::Values. It's magic!
Devang Patel [Tue, 8 Mar 2011 22:12:11 +0000 (22:12 +0000)]
llvm.dbg.declare intrinsic does not use any llvm::Values. It's magic!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127282 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReverting testcase at 4126896; r126672 broke something else. <rdar://problem/9055247>
Stuart Hastings [Tue, 8 Mar 2011 21:54:17 +0000 (21:54 +0000)]
Reverting testcase at 4126896; r126672 broke something else.  <rdar://problem/9055247>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127278 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoOnce again try to appease the buildbot gods.
Bill Wendling [Tue, 8 Mar 2011 21:36:29 +0000 (21:36 +0000)]
Once again try to appease the buildbot gods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127272 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoStrip cruft.
Benjamin Kramer [Tue, 8 Mar 2011 20:19:10 +0000 (20:19 +0000)]
Strip cruft.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127269 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a testcase for r127263.
Eric Christopher [Tue, 8 Mar 2011 19:49:15 +0000 (19:49 +0000)]
Add a testcase for r127263.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127266 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTry to fix the compilation error due to type incombatibility.
Bill Wendling [Tue, 8 Mar 2011 19:39:35 +0000 (19:39 +0000)]
Try to fix the compilation error due to type incombatibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127265 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted...
Jakob Stoklund Olesen [Tue, 8 Mar 2011 19:37:54 +0000 (19:37 +0000)]
Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the sorted array.

Patch by Olaf Krzikalla!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127264 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix some latent bugs if the nodes are unschedulable. We'd gotten away
Eric Christopher [Tue, 8 Mar 2011 19:35:47 +0000 (19:35 +0000)]
Fix some latent bugs if the nodes are unschedulable. We'd gotten away
with this before since none of the register tracking or nightly tests
had unschedulable nodes.

This should probably be refixed with a special default Node that just
returns some "don't touch me" values.

Fixes PR9427

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127263 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoStop building PPC parts on OSX. Radar 8637926.
Stuart Hastings [Tue, 8 Mar 2011 19:28:28 +0000 (19:28 +0000)]
Stop building PPC parts on OSX.  Radar 8637926.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127262 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert "Make a comparator's argument `const'. This fixes the build for
Oscar Fuentes [Tue, 8 Mar 2011 19:26:21 +0000 (19:26 +0000)]
Revert "Make a comparator's argument `const'. This fixes the build for
MSVC 9."

The "fix" was meaningless.

This reverts commit r127245.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127260 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDarwin 'as' silently ignores the '.ident' directive.
Jim Grosbach [Tue, 8 Mar 2011 19:17:19 +0000 (19:17 +0000)]
Darwin 'as' silently ignores the '.ident' directive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127258 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTypo. Patch by arrowdodger.
John McCall [Tue, 8 Mar 2011 18:01:22 +0000 (18:01 +0000)]
Typo.  Patch by arrowdodger.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127256 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReduce vector reallocations.
Benjamin Kramer [Tue, 8 Mar 2011 17:28:36 +0000 (17:28 +0000)]
Reduce vector reallocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127254 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofix incorrect comment.
Chris Lattner [Tue, 8 Mar 2011 16:59:03 +0000 (16:59 +0000)]
fix incorrect comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127252 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSince last couple of days, argument number is encoded using 8 bits from line number...
Devang Patel [Tue, 8 Mar 2011 16:29:40 +0000 (16:29 +0000)]
Since last couple of days, argument number is encoded using 8 bits from line number field in argument's debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127250 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUpdate DILexicalBlock doc to mention new fields.
Devang Patel [Tue, 8 Mar 2011 16:25:29 +0000 (16:25 +0000)]
Update DILexicalBlock doc to mention new fields.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127249 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoX86: Fix the (saddo/ssub x, 1) -> incl/decl selection to check the right operand...
Benjamin Kramer [Tue, 8 Mar 2011 15:20:20 +0000 (15:20 +0000)]
X86: Fix the (saddo/ssub x, 1) -> incl/decl selection to check the right operand for 1.

Found by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127247 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPTX: Add intrinsic support for ntid, ctaid, and nctaid registers
Justin Holewinski [Tue, 8 Mar 2011 14:10:18 +0000 (14:10 +0000)]
PTX: Add intrinsic support for ntid, ctaid, and nctaid registers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127246 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake a comparator's argument `const'. This fixes the build for MSVC 9.
Oscar Fuentes [Tue, 8 Mar 2011 13:52:07 +0000 (13:52 +0000)]
Make a comparator's argument `const'. This fixes the build for MSVC 9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127245 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove remnant of my experimentation with CMake.
Oscar Fuentes [Tue, 8 Mar 2011 13:30:52 +0000 (13:30 +0000)]
Remove remnant of my experimentation with CMake.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127244 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix PR9331. Simplified version of a patch by Jakub Staszak.
Duncan Sands [Tue, 8 Mar 2011 12:39:03 +0000 (12:39 +0000)]
Fix PR9331.  Simplified version of a patch by Jakub Staszak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127243 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agolib/Support/regcomp.c: Fix cygwin warning.
NAKAMURA Takumi [Tue, 8 Mar 2011 12:25:29 +0000 (12:25 +0000)]
lib/Support/regcomp.c: Fix cygwin warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127241 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse $(ECHOPATH) to make llvm-lit from llvm-lit.in.
NAKAMURA Takumi [Tue, 8 Mar 2011 12:25:19 +0000 (12:25 +0000)]
Use $(ECHOPATH) to make llvm-lit from llvm-lit.in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127240 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReapply r127073(partially): Introduce $(ECHOPATH) to print DOSish path string on...
NAKAMURA Takumi [Tue, 8 Mar 2011 12:25:10 +0000 (12:25 +0000)]
Reapply r127073(partially): Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).

On mingw and python/w32, lit would not be expected to understand MSYS-style path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127239 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTestcase for r127187.
Bill Wendling [Tue, 8 Mar 2011 10:27:58 +0000 (10:27 +0000)]
Testcase for r127187.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127236 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDon't show commands.
Bill Wendling [Tue, 8 Mar 2011 08:34:49 +0000 (08:34 +0000)]
Don't show commands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127224 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReorder comments to put them the right way around.
Nick Lewycky [Tue, 8 Mar 2011 06:29:47 +0000 (06:29 +0000)]
Reorder comments to put them the right way around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127220 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoWhile sinking an instruction, do not lose llvm.dbg.value intrinsic.
Devang Patel [Tue, 8 Mar 2011 03:06:19 +0000 (03:06 +0000)]
While sinking an instruction, do not lose llvm.dbg.value intrinsic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127214 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoChange the next release number to 3.0svn.
Bill Wendling [Tue, 8 Mar 2011 03:00:02 +0000 (03:00 +0000)]
Change the next release number to 3.0svn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127213 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoA few more tests for instruction encodings.
Bill Wendling [Tue, 8 Mar 2011 02:51:48 +0000 (02:51 +0000)]
A few more tests for instruction encodings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127209 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTurn on list-ilp scheduling by default on x86 and x86-64, fix up
Eric Christopher [Tue, 8 Mar 2011 02:42:25 +0000 (02:42 +0000)]
Turn on list-ilp scheduling by default on x86 and x86-64, fix up
testcases accordingly. Some are currently xfailed and will be filed
as bugs to be fixed or understood.

Performance results:

roughly neutral on SPEC
some micro benchmarks in the llvm suite are up between 100 and 150%, only
a pair of regressions that are due to be investigated

john-the-ripper saw:
10% improvement in traditional DES
8% improvement in BSDI DES
59% improvement in FreeBSD MD5
67% improvement in OpenBSD Blowfish
14% improvement in LM DES

Small compile time impact.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127208 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFurther improvements to pre-RA-sched=list-ilp.
Andrew Trick [Tue, 8 Mar 2011 01:51:56 +0000 (01:51 +0000)]
Further improvements to pre-RA-sched=list-ilp.
This change uses the MaxReorderWindow for both height and depth, which
tends to limit the negative effects of high register pressure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127203 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix a compiler crash where a Glue value had multiple uses. Radar 9049552.
Bob Wilson [Tue, 8 Mar 2011 01:17:20 +0000 (01:17 +0000)]
Fix a compiler crash where a Glue value had multiple uses.  Radar 9049552.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127198 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix comment typos.
Bob Wilson [Tue, 8 Mar 2011 01:17:16 +0000 (01:17 +0000)]
Fix comment typos.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127197 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRename the narrow shift right immediate operands to "shr_imm*" operands. Also
Bill Wendling [Mon, 7 Mar 2011 23:38:41 +0000 (23:38 +0000)]
Rename the narrow shift right immediate operands to "shr_imm*" operands. Also
expand the testing of the narrowing shift right instructions.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127193 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoLet shrinkToUses optionally return a list of now dead machine instructions.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 23:29:10 +0000 (23:29 +0000)]
Let shrinkToUses optionally return a list of now dead machine instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127192 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTypos.
Eric Christopher [Mon, 7 Mar 2011 22:48:16 +0000 (22:48 +0000)]
Typos.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127186 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPreserve line no. info.
Devang Patel [Mon, 7 Mar 2011 22:43:45 +0000 (22:43 +0000)]
Preserve line no. info.
Radar 9097659

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127182 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake the UselessRegs argument optional in the LiveRangeEdit constructor.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 22:42:16 +0000 (22:42 +0000)]
Make the UselessRegs argument optional in the LiveRangeEdit constructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127181 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.
Cameron Zwarich [Mon, 7 Mar 2011 21:56:36 +0000 (21:56 +0000)]
Move getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127175 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd test for r127138.
Rafael Espindola [Mon, 7 Mar 2011 21:28:14 +0000 (21:28 +0000)]
Add test for r127138.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127172 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoOften GCC can see that NumBuckets is zero here, resulting in a warning
Duncan Sands [Mon, 7 Mar 2011 19:38:38 +0000 (19:38 +0000)]
Often GCC can see that NumBuckets is zero here, resulting in a warning
about possibly swapped memset parameters.  Avoid the warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127170 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTidy up.
Jim Grosbach [Mon, 7 Mar 2011 19:28:43 +0000 (19:28 +0000)]
Tidy up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127169 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoHandle the special case of registers begin redefined by early-clobber defs.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 18:56:16 +0000 (18:56 +0000)]
Handle the special case of registers begin redefined by early-clobber defs.

In this case, the value need to be available at the load index instead of the
normal use index.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127167 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse the correct LHS type when determining the legalization of a shift's RHS type.
Owen Anderson [Mon, 7 Mar 2011 18:29:47 +0000 (18:29 +0000)]
Use the correct LHS type when determining the legalization of a shift's RHS type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127163 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoptx: Fix calling convention printing in AsmWriter.cpp
Justin Holewinski [Mon, 7 Mar 2011 14:32:30 +0000 (14:32 +0000)]
ptx: Fix calling convention printing in AsmWriter.cpp

This allows LLVM IR using ptx_kernel or ptx_device calling
conventions to be properly printed when emitted in text form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127157 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoClarify that the result of an srem is only guaranteed to have the same sign as the
Duncan Sands [Mon, 7 Mar 2011 09:12:24 +0000 (09:12 +0000)]
Clarify that the result of an srem is only guaranteed to have the same sign as the
left-hand-side if the result is non-zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127156 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDon't keep the log files around. Just pipe to a log file instead.
Bill Wendling [Mon, 7 Mar 2011 07:37:37 +0000 (07:37 +0000)]
Don't keep the log files around. Just pipe to a log file instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127155 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix tagging name.
Bill Wendling [Mon, 7 Mar 2011 07:37:12 +0000 (07:37 +0000)]
Fix tagging name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127154 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTry fixing mingw build.
Argyrios Kyrtzidis [Mon, 7 Mar 2011 05:35:01 +0000 (05:35 +0000)]
Try fixing mingw build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127153 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPrepend LD.Flags before LDFLAGS to avoid overriding necessary paths.
Eric Christopher [Mon, 7 Mar 2011 04:25:12 +0000 (04:25 +0000)]
Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.

Patch by Jack Howarth.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127152 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTweak this test. We can analyze what happens and show that we still do the
Nick Lewycky [Mon, 7 Mar 2011 02:10:18 +0000 (02:10 +0000)]
Tweak this test. We can analyze what happens and show that we still do the
right thing, instead of merely being unable to analyze and the transform
doesn't occur.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127149 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd more analysis of the sign bit of an srem instruction. If the LHS is negative
Nick Lewycky [Mon, 7 Mar 2011 01:50:10 +0000 (01:50 +0000)]
Add more analysis of the sign bit of an srem instruction. If the LHS is negative
then the result could go either way. If it's provably positive then so is the
srem. Fixes PR9343 #7!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127146 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDo a compiler check that we use one of the types from PointerUnion[N], instead of...
Argyrios Kyrtzidis [Mon, 7 Mar 2011 01:30:20 +0000 (01:30 +0000)]
Do a compiler check that we use one of the types from PointerUnion[N], instead of a runtime check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127145 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoWindows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.
NAKAMURA Takumi [Mon, 7 Mar 2011 00:12:53 +0000 (00:12 +0000)]
Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127140 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDon't internalize available_externally functions. We already did the right
Rafael Espindola [Sun, 6 Mar 2011 23:41:34 +0000 (23:41 +0000)]
Don't internalize available_externally functions. We already did the right
thing for variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127138 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoremove another jeff link
Chris Lattner [Sun, 6 Mar 2011 23:00:33 +0000 (23:00 +0000)]
remove another jeff link

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127135 91177308-0d34-0410-b5e6-96231b3b80d8