Vikram S. Adve
b4a9685872
Bug fix in SetOperandsForMemInstr: handle leading zeros correctly
...
when folding or not folding GEPs.
llvm-svn: 3245
2002-08-04 20:51:05 +00:00
Vikram S. Adve
1a1c3ed56d
Add function GetConstantValueAsUnsignedInt.
...
Fix 2 bugs in FoldGetElemChain so index vector is not modified
when no GEPs are folded in, and so a hasLeadingZero is computed
only for the last folded GEP, not the one after that if any.
llvm-svn: 3244
2002-08-04 20:49:49 +00:00
Chris Lattner
b430c3f395
Fix compilation problem. IsIndexZero doesn't exist, use IsZero instead.
...
llvm-svn: 3243
2002-08-03 20:57:38 +00:00
Chris Lattner
419bda15f5
Testcase for stuff instcombine should do eventually
...
llvm-svn: 3240
2002-08-03 20:30:26 +00:00
Chris Lattner
ff61e352ae
Add some more features that we could instcombine away
...
llvm-svn: 3239
2002-08-03 20:24:58 +00:00
Chris Lattner
4b03304600
*** empty log message ***
...
llvm-svn: 3238
2002-08-03 20:24:45 +00:00
Chris Lattner
ead864f089
Comment options that may be enabled
...
llvm-svn: 3237
2002-08-03 20:19:30 +00:00
Vikram S. Adve
1944064801
Simplified handling of array indexes in SetMemOperands_Internal.
...
llvm-svn: 3236
2002-08-03 13:48:21 +00:00
Vikram S. Adve
a173017d7b
Add MemAccessInst::getNumIndices().
...
llvm-svn: 3234
2002-08-03 13:22:36 +00:00
Vikram S. Adve
4737dd7268
Eliminate cast instructions: use only GEPs in decomposed sequence.
...
Don't decompose if there are 2 indices with 0 as first index.
Compute Changed flag correctly in runOnBasicBlock().
llvm-svn: 3233
2002-08-03 13:21:15 +00:00
Vikram S. Adve
eaf18e16fe
Run both *.ll and *.c tests.
...
llvm-svn: 3232
2002-08-03 13:17:03 +00:00
Vikram S. Adve
26a0029255
Added expected decomposed sequence in comments, plus a couple of new cases.
...
llvm-svn: 3231
2002-08-03 13:16:47 +00:00
Chris Lattner
33b3b9660b
Fix problem where lli would not print out a 64 bit value when the client code
...
uses the modifier "%ld". Now lli passes off "%lld" to the underlying runtime
library in this case.
llvm-svn: 3230
2002-08-02 23:08:32 +00:00
Chris Lattner
600ba8fa6d
Fix one real nasty bug
...
llvm-svn: 3227
2002-08-02 22:06:04 +00:00
Chris Lattner
551e12055d
Fix lli with no arguments
...
llvm-svn: 3226
2002-08-02 21:51:29 +00:00
Chris Lattner
650b6da0f9
Fix bug: test/Regression/Transforms/InstCombine/2002-08-02-CastTest.ll
...
Implement feature: Cast's can now be converted to bitwise AND expressions.
llvm-svn: 3225
2002-08-02 20:00:25 +00:00
Chris Lattner
a479fecbd5
Fix yet another bug in the testcase
...
llvm-svn: 3224
2002-08-02 19:59:20 +00:00
Chris Lattner
ab3aeb7eae
Fix bug in testcase
...
llvm-svn: 3223
2002-08-02 19:54:05 +00:00
Chris Lattner
ae7a0d39fd
* Cleanups of instcombine
...
- Reenable gep (gep x) -> x
- Make instcombine do dead instruction elimination where it's really
easy. Now visitors don't have to ensure they aren't not processing
dead instructions.
llvm-svn: 3222
2002-08-02 19:29:35 +00:00
Chris Lattner
f6f95d08da
These tests should not run -dce pass to cleanup instcombine.
...
If instcombine is making dead instructions, ALL that should be used is -die
llvm-svn: 3221
2002-08-02 19:27:58 +00:00
Chris Lattner
e19f137097
Add another testcase that isn't failing because of another bug in instcombine
...
llvm-svn: 3220
2002-08-02 18:48:09 +00:00
Chris Lattner
7feaa068eb
Change test to really test the cases we can hit
...
llvm-svn: 3219
2002-08-02 18:47:11 +00:00
Chris Lattner
a1651c750b
New testcase
...
llvm-svn: 3218
2002-08-02 18:46:53 +00:00
Vikram S. Adve
15bd3ad996
Don't build Debug/ versions when ENABLE_OPTIMIZED is on.
...
llvm-svn: 3216
2002-08-02 18:34:12 +00:00
Chris Lattner
f56bd89918
Fix bug: test/Regression/Transforms/GCSE/2002-05-21-NoSharedDominator.ll
...
llvm-svn: 3215
2002-08-02 18:06:01 +00:00
Chris Lattner
8e72d6f6e9
Implement dominator checking in the verifier, so that we check that all
...
defintiions dominate their uses
llvm-svn: 3214
2002-08-02 17:37:08 +00:00
Chris Lattner
6d149e0215
Fix bug: test/Regression/Other/2002-08-02-DomSetProblem.ll
...
llvm-svn: 3213
2002-08-02 16:51:27 +00:00
Chris Lattner
35d69af46f
Add a note about where to put miscompilation tests.
...
llvm-svn: 3212
2002-08-02 16:44:09 +00:00
Chris Lattner
d43023a85d
Split dominance calculation and post dominance calculation stuff
...
Dominance calculation goes to VMCore library to be used by Verifier.
llvm-svn: 3210
2002-08-02 16:43:03 +00:00
Chris Lattner
45dca23e2f
New testcase for dominator problem
...
llvm-svn: 3209
2002-08-02 16:41:21 +00:00
Chris Lattner
2410759241
The verify pass is implicit
...
llvm-svn: 3208
2002-08-02 16:39:18 +00:00
Chris Lattner
932ed7a084
New test
...
llvm-svn: 3207
2002-08-02 16:26:08 +00:00
Chris Lattner
36e3570dc2
Tweak makefile after moving
...
llvm-svn: 3205
2002-08-02 16:10:24 +00:00
Chris Lattner
b8f6cfa06e
Verify is implicit for opt
...
llvm-svn: 3204
2002-08-01 22:26:32 +00:00
Chris Lattner
96164edcfb
Fix makefile to work.
...
llvm-svn: 3203
2002-08-01 20:50:54 +00:00
Chris Lattner
2fdcb4b7b6
Fix broken testcase
...
llvm-svn: 3202
2002-08-01 20:50:03 +00:00
Chris Lattner
3a9b031848
Make testcase legal LLVM
...
llvm-svn: 3201
2002-08-01 20:48:21 +00:00
Chris Lattner
7ff5a21f0f
Remove unneccesary #inlcude
...
llvm-svn: 3200
2002-08-01 20:01:02 +00:00
Chris Lattner
6a33d6f0bb
Enhance -time-passes to be more detailed and useful
...
llvm-svn: 3199
2002-08-01 19:33:09 +00:00
Vikram S. Adve
6d6deba9f9
Bug fix: incorrect SAVE instruction when using register for stack size.
...
llvm-svn: 3198
2002-08-01 14:26:11 +00:00
Vikram S. Adve
92a546c025
Feature test for stack size bigger than immed. field of SAVE instruction.
...
Also tests code generation for code with mixed indices.
llvm-svn: 3197
2002-08-01 14:21:05 +00:00
Chris Lattner
301b7e7733
Reorder tool building sequence to more closely match the reality of what
...
is being worked on the most.
llvm-svn: 3196
2002-08-01 00:01:33 +00:00
Chris Lattner
e5fd3867d3
Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx
...
llvm-svn: 3195
2002-07-31 23:56:44 +00:00
Chris Lattner
14fceb8244
NEw testcase
...
llvm-svn: 3194
2002-07-31 23:54:29 +00:00
Chris Lattner
50ead8c492
Implement the other half of a feature advertised by OperandConvertableToType.
...
This fixes bug: test/Regression/Transforms/LevelRaise/2002-07-31-AssertionFailure.ll
llvm-svn: 3193
2002-07-31 22:31:34 +00:00
Chris Lattner
d711a5e493
Cleanup Makefile a bit
...
llvm-svn: 3192
2002-07-31 21:32:05 +00:00
Vikram S. Adve
c19b1cc168
Just improved comments and assertions.
...
llvm-svn: 3191
2002-07-31 21:13:31 +00:00
Chris Lattner
ee94eda056
Trim down testcase a bit
...
llvm-svn: 3190
2002-07-31 21:10:11 +00:00
Chris Lattner
0d3f623a70
New testcase for level-raise crash inspired by SPEC
...
llvm-svn: 3189
2002-07-31 21:06:29 +00:00
Vikram S. Adve
defe6ec939
Add a missing case: converting float/double to unsigned integer types.
...
llvm-svn: 3188
2002-07-31 21:01:34 +00:00