summaryrefslogtreecommitdiffstats
path: root/llvm/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix reassociate to postpone certain instruction deletions untilDan Gohman2011-03-101-0/+25
| | | | | | | | | | after it has finished all of its reassociations, because its habit of unlinking operands and holding them in a datastructure while working means that it's not easy to determine when an instruction is really dead until after all its regular work is done. rdar://9096268. llvm-svn: 127424
* InstCombine: Turn umul_with_overflow into mul nuw if we can prove that it ↵Benjamin Kramer2011-03-101-0/+27
| | | | | | | | | | cannot overflow. This happens a lot in clang-compiled C++ code because it adds overflow checks to operator new[]: unsigned *foo(unsigned n) { return new unsigned[n]; } We can optimize away the overflow check on 64 bit targets because (uint64_t)n*4 cannot overflow. llvm-svn: 127418
* PTX: Add preliminary support for floating-point divide and multiply-and-addJustin Holewinski2011-03-103-0/+47
| | | | llvm-svn: 127410
* ptx: add the rest of special registers of ISA version 2.0Che-Liang Chiou2011-03-101-34/+176
| | | | llvm-svn: 127397
* Revert 127359; it broke lencod.Stuart Hastings2011-03-107-21/+13
| | | | llvm-svn: 127382
* Revert "Re-enable test and hope to silence the buildbots", still broken.Daniel Dunbar2011-03-091-0/+3
| | | | llvm-svn: 127369
* Fix mistyped CHECK lines.Benjamin Kramer2011-03-097-10/+10
| | | | llvm-svn: 127366
* Tweak test to work on Linux.Stuart Hastings2011-03-091-3/+3
| | | | llvm-svn: 127364
* Disable this test temporarily to reduce BuildBot complaints.Stuart Hastings2011-03-091-3/+3
| | | | llvm-svn: 127363
* Preserve line number information while simplifying libcalls.Devang Patel2011-03-091-0/+24
| | | | llvm-svn: 127362
* X86 byval copies no longer always_inline. <rdar://problem/8706628>Stuart Hastings2011-03-097-13/+21
| | | | llvm-svn: 127359
* Add a testcase for the addc improvements introduced some commits ago. Patch ↵Bruno Cardoso Lopes2011-03-091-0/+13
| | | | | | by Akira Hatanaka llvm-svn: 127358
* Re-enable test and hope to silence the buildbotsBruno Cardoso Lopes2011-03-091-3/+0
| | | | llvm-svn: 127357
* try to make o32 cc tests less specific to silence some buildbots. The test ↵Bruno Cardoso Lopes2011-03-091-26/+26
| | | | | | isn't enabled yet, this is will be done in a subsequent commit. Patch by Akira Hatanaka. llvm-svn: 127356
* LLVM combines the offset mode of A8.6.199 A1 & A2 into STRBT.Johnny Chen2011-03-091-0/+3
| | | | | | | | | 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 llvm-svn: 127354
* Make physreg coalescing independent on the number of uses of the virtual ↵Jakob Stoklund Olesen2011-03-092-3/+36
| | | | | | | | | | | | | | | | | 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. llvm-svn: 127351
* Delete a test case that is very sensitive to coalescer behavior.Jakob Stoklund Olesen2011-03-091-85/+0
| | | | | | | | The test is derived from an old miscompilation of MultiSource/Benchmarks/VersaBench/8b10b which is run regularly, so we are not losing coverage. llvm-svn: 127350
* Improve varags handling, with testcases. Patch by Sasa StankovicBruno Cardoso Lopes2011-03-091-0/+277
| | | | llvm-svn: 127349
* This test case should work with list-ilp or list-burr.Andrew Trick2011-03-091-1/+1
| | | | llvm-svn: 127348
* When SCEV can determine the loop test is X < X, set ExactBECount=0.Andrew Trick2011-03-091-0/+34
| | | | | | | | When ExactBECount is a constant, use it for MaxBECount. When MaxBECount cannot be computed, replace it with ExactBECount. Fixes PR9424. llvm-svn: 127342
* Target/X86: Tweak va_arg for Win64 not to miss taking va_start when number ↵NAKAMURA Takumi2011-03-091-0/+33
| | | | | | of fixed args > 4. llvm-svn: 127328
* Add a test case for r127320.Cameron Zwarich2011-03-091-0/+14
| | | | llvm-svn: 127321
* Add another micro-optimization. Apologies for the lack of refactoring, but INick Lewycky2011-03-091-0/+8
| | | | | | | | | 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! llvm-svn: 127318
* Add support to scalar replacement for partial vector accesses of an alloca, e.g.Cameron Zwarich2011-03-091-0/+59
| | | | | | | | | | | | | | | | | 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>. llvm-svn: 127317
* Add a RUN line to the test case to make it functional. <rdar://problem/9055247>Stuart Hastings2011-03-091-0/+1
| | | | llvm-svn: 127312
* Test cases for r127309. <rdar://problem/9055247>Stuart Hastings2011-03-092-0/+8
| | | | llvm-svn: 127310
* Build bots hate me.Bill Wendling2011-03-091-1/+1
| | | | llvm-svn: 127307
* PR9346: Prevent SimplifyDemandedBits from incorrectly introducingEli Friedman2011-03-091-0/+12
| | | | | | INT_MIN % -1. llvm-svn: 127306
* Testcase for r127301.Bill Wendling2011-03-091-0/+32
| | | | llvm-svn: 127304
* PR9420; an instruction before an unreachable is guaranteed not to have anyEli Friedman2011-03-091-0/+31
| | | | | | | | 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. llvm-svn: 127299
* Fix testcase.Eric Christopher2011-03-091-1/+1
| | | | llvm-svn: 127298
* * Correct encoding for VSRI.Bill Wendling2011-03-091-0/+32
| | | | | | * Add tests for VSRI and VSLI. llvm-svn: 127297
* Correct the encoding for VRSRA and VSRA instructions.Bill Wendling2011-03-091-0/+32
| | | | llvm-svn: 127294
* * Fix VRSHR and VSHR to have the correct encoding for the immediate.Bill Wendling2011-03-081-109/+108
| | | | | | * Update the NEON shift instruction test to expect what 'as' produces. llvm-svn: 127293
* Reverting testcase at 4126896; r126672 broke something else. ↵Stuart Hastings2011-03-081-2/+0
| | | | | | <rdar://problem/9055247> llvm-svn: 127278
* Once again try to appease the buildbot gods.Bill Wendling2011-03-081-2/+1
| | | | llvm-svn: 127272
* Strip cruft.Benjamin Kramer2011-03-081-1907/+8
| | | | llvm-svn: 127269
* Add a testcase for r127263.Eric Christopher2011-03-081-0/+1955
| | | | llvm-svn: 127266
* Try to fix the compilation error due to type incombatibility.Bill Wendling2011-03-081-1/+2
| | | | llvm-svn: 127265
* X86: Fix the (saddo/ssub x, 1) -> incl/decl selection to check the right ↵Benjamin Kramer2011-03-082-2/+35
| | | | | | | | operand for 1. Found by inspection. llvm-svn: 127247
* PTX: Add intrinsic support for ntid, ctaid, and nctaid registersJustin Holewinski2011-03-081-0/+96
| | | | llvm-svn: 127246
* Fix PR9331. Simplified version of a patch by Jakub Staszak.Duncan Sands2011-03-081-0/+50
| | | | llvm-svn: 127243
* Reapply r127073(partially): Introduce $(ECHOPATH) to print DOSish path ↵NAKAMURA Takumi2011-03-081-16/+18
| | | | | | | | string on MSYS bash for alternative of $(ECHO). On mingw and python/w32, lit would not be expected to understand MSYS-style path. llvm-svn: 127239
* Testcase for r127187.Bill Wendling2011-03-081-0/+24
| | | | llvm-svn: 127236
* While sinking an instruction, do not lose llvm.dbg.value intrinsic.Devang Patel2011-03-081-0/+62
| | | | llvm-svn: 127214
* A few more tests for instruction encodings.Bill Wendling2011-03-081-0/+7
| | | | llvm-svn: 127209
* Turn on list-ilp scheduling by default on x86 and x86-64, fix upEric Christopher2011-03-0818-18/+24
| | | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 127208
* Fix a compiler crash where a Glue value had multiple uses. Radar 9049552.Bob Wilson2011-03-081-0/+23
| | | | llvm-svn: 127198
* Rename the narrow shift right immediate operands to "shr_imm*" operands. AlsoBill Wendling2011-03-071-0/+5
| | | | | | | | expand the testing of the narrowing shift right instructions. No functionality change. llvm-svn: 127193
* Preserve line no. info.Devang Patel2011-03-071-0/+49
| | | | | | Radar 9097659 llvm-svn: 127182
OpenPOWER on IntegriCloud