Commit Graph

210 Commits

Author SHA1 Message Date
Chris Lattner
8fb6882f19 New testcase for a latent bug in instcombine that I have been chasing for
1.5 days :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16545 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-28 17:50:05 +00:00
Chris Lattner
dffb445503 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16527 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-27 19:25:20 +00:00
Chris Lattner
907c7c7dd1 Testcases for rev 250 of InstructionCombining.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16522 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-27 16:21:26 +00:00
Chris Lattner
71dd801055 Add some tests for shr-and folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16507 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-24 15:18:43 +00:00
Chris Lattner
7502ae6640 New testcase for a pattern that occurs 20 times in perlbmk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16503 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-23 21:42:49 +00:00
Chris Lattner
60a11f1970 load null is undefined behavior, this should fold
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16498 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-23 15:45:20 +00:00
Chris Lattner
c804d530c5 Two testcases for invalid transformations that instcombine is doing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16446 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-20 10:14:27 +00:00
Chris Lattner
c2fa9894ee New testcase for PR362: Icky code generated for std::min/std::max
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16408 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-19 19:17:10 +00:00
Chris Lattner
b4f5c68e5a Add two new testcases that instcombine should handle
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16403 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-19 18:43:01 +00:00
Chris Lattner
287433594b New testcase that instcombine is getting wrong
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15637 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-11 00:49:50 +00:00
Chris Lattner
efd0149de9 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15592 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-09 21:03:35 +00:00
Robert Bocchino
2311d717f8 *** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15290 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-27 20:50:02 +00:00
Chris Lattner
c0de837ad2 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15028 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-20 05:20:39 +00:00
Chris Lattner
247d62c77b New testcase that instcombine should help out with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15023 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-20 01:47:49 +00:00
Chris Lattner
6c08892814 Testcases missed by the instruction combiner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15017 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-20 00:57:21 +00:00
Chris Lattner
970c17889a New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14639 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-06 07:38:00 +00:00
Chris Lattner
f77afbb275 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14636 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-06 07:00:11 +00:00
Chris Lattner
80fc86a0b2 Add a new testcase for folding an add into a switch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14586 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-03 00:25:31 +00:00
Chris Lattner
8d5e05bb71 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14442 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-27 22:51:19 +00:00
Chris Lattner
b80e3ada7b New test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14220 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-18 06:07:17 +00:00
Chris Lattner
9e28f18fb3 More instcombine testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14094 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-09 07:59:40 +00:00
Chris Lattner
16ea43b008 New testcase that is important for the Java FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14085 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-09 05:07:01 +00:00
Chris Lattner
4561db2edc New testcase for the instruction combiner that happen often in the Java FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14082 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-09 04:23:57 +00:00
Chris Lattner
8152f5f41d Add back a test I accidentally removed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13835 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-27 17:43:33 +00:00
Chris Lattner
3ba3097516 Add another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13833 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-27 17:28:55 +00:00
Chris Lattner
7bbf388753 remove bogus test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13827 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-27 07:39:51 +00:00
Chris Lattner
256b7a452b New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13739 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-25 06:30:49 +00:00
Chris Lattner
2e13cea896 Add a new test16 and fix some other tests that were not properly written
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13735 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-25 04:28:43 +00:00
Chris Lattner
13b29f6844 New testcase for PR336
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13401 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-07 15:38:50 +00:00
Chris Lattner
db05858ba1 Add a new testcase for X/-1, fix bug that prevented tests from running right
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13171 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-26 14:01:47 +00:00
Chris Lattner
fb384a15ff New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12820 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-10 22:21:14 +00:00
Chris Lattner
7706324512 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12818 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-10 22:01:27 +00:00
Chris Lattner
7c4865dfff Another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12802 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-09 23:47:52 +00:00
Chris Lattner
1c48527330 Testcase to make sure we can apply the shift to the operands of the select,
eliminating the shifts


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12801 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-09 23:47:24 +00:00
Chris Lattner
a5c5830d53 Add testcases for harder combining cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12799 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-09 23:43:48 +00:00
Chris Lattner
b5ee959e63 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12792 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-09 18:19:29 +00:00
Chris Lattner
77aac1226a New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12783 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-08 20:39:40 +00:00
Chris Lattner
7018f5c2d6 Add some more cases we should combine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12768 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-08 04:43:04 +00:00
Chris Lattner
ef09aab9ce New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12761 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-07 18:38:01 +00:00
Chris Lattner
ec3f8cd551 New testcase that crashes the instcombine pass. Dominance properties have
no meaning if the code is not reachable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12657 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-05 02:01:32 +00:00
Chris Lattner
6d0996866c Add some testcases for select simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12543 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-30 19:36:54 +00:00
Chris Lattner
f6e59410ee New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12518 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-25 22:59:06 +00:00
Chris Lattner
f3fbddd333 New testcase, the optimizer can delete zero sized allocas
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12506 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-19 06:07:43 +00:00
Chris Lattner
ffd072af91 New testcase, distilled from povray I think.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12364 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-13 23:53:04 +00:00
Chris Lattner
eb416e85bc Oh right, casts can interfere. Test this too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12354 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-13 00:11:38 +00:00
Chris Lattner
99780ce874 new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12352 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 23:52:51 +00:00
Chris Lattner
f820e3b4b8 test instruction combiner opts for select instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12328 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-12 06:01:00 +00:00
Chris Lattner
43c4361178 new testcase for intrinsic folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11943 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 05:28:42 +00:00
Chris Lattner
efd74a0159 The instruction combining pass removes dead instructions, there is no need
to run the die pass after it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11942 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-28 05:26:06 +00:00
Chris Lattner
f7b0041fb5 The instcombiner should canonicalize comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11899 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-27 06:27:07 +00:00