Chris Lattner
d24bb4bfb7
* Write the "Custom parser" section
...
* Boldify stuff that changes in the help output.
llvm-svn: 3254
2002-08-07 18:27:04 +00:00
Chris Lattner
381f3b8dfe
Write the reference section, make other minor editing changes elsewhere.
...
llvm-svn: 3253
2002-08-06 19:36:06 +00:00
Mehwish Nagda
0517186a70
added Mapping and Function Pass
...
llvm-svn: 3251
2002-08-05 23:23:19 +00:00
Vikram S. Adve
34c7fef2d6
Add function GetConstantValueAsUnsignedInt.
...
llvm-svn: 3249
2002-08-04 20:55:59 +00:00
Vikram S. Adve
5d16e242e1
Bug fix in CreateCodeToLoadConst(): use sign of dest, not operand,
...
in choosing how to create int-set instructions.
llvm-svn: 3248
2002-08-04 20:55:37 +00:00
Vikram S. Adve
95b42e5892
Add a sequence of GEPs with constant indices, for folding.
...
llvm-svn: 3247
2002-08-04 20:53:14 +00:00
Vikram S. Adve
9dd19151b8
Bug fix in TargetData::getIndexedOffset(): handle struct offset
...
after array offset correctly. The type was not being updated for
array offsets!
llvm-svn: 3246
2002-08-04 20:52:39 +00:00
Vikram S. Adve
03a5ca5dcc
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
3489677a7e
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
6f818d501c
Fix compilation problem. IsIndexZero doesn't exist, use IsZero instead.
...
llvm-svn: 3243
2002-08-03 20:57:38 +00:00
Chris Lattner
63b816c7bc
Testcase for stuff instcombine should do eventually
...
llvm-svn: 3240
2002-08-03 20:30:26 +00:00
Chris Lattner
439fb9cf91
Add some more features that we could instcombine away
...
llvm-svn: 3239
2002-08-03 20:24:58 +00:00
Chris Lattner
1fdeca3bb6
*** empty log message ***
...
llvm-svn: 3238
2002-08-03 20:24:45 +00:00
Chris Lattner
6ac9ec3dab
Comment options that may be enabled
...
llvm-svn: 3237
2002-08-03 20:19:30 +00:00
Vikram S. Adve
6316385f3e
Simplified handling of array indexes in SetMemOperands_Internal.
...
llvm-svn: 3236
2002-08-03 13:48:21 +00:00
Vikram S. Adve
8159deecc3
Add MemAccessInst::getNumIndices().
...
llvm-svn: 3234
2002-08-03 13:22:36 +00:00
Vikram S. Adve
bbe47f2e7d
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
e876b94dc4
Run both *.ll and *.c tests.
...
llvm-svn: 3232
2002-08-03 13:17:03 +00:00
Vikram S. Adve
eb0d0bd4d8
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
5f2b5e70e0
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
64e62f9a50
Fix one real nasty bug
...
llvm-svn: 3227
2002-08-02 22:06:04 +00:00
Chris Lattner
86b1459fdb
Fix lli with no arguments
...
llvm-svn: 3226
2002-08-02 21:51:29 +00:00
Chris Lattner
c840f0ec2a
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
4481c27eed
Fix yet another bug in the testcase
...
llvm-svn: 3224
2002-08-02 19:59:20 +00:00
Chris Lattner
4f1571b6ca
Fix bug in testcase
...
llvm-svn: 3223
2002-08-02 19:54:05 +00:00
Chris Lattner
5d9be21256
* 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
cdb6a7e022
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
8256db1eb0
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
9e27b8d5b8
Change test to really test the cases we can hit
...
llvm-svn: 3219
2002-08-02 18:47:11 +00:00
Chris Lattner
bc08630f50
New testcase
...
llvm-svn: 3218
2002-08-02 18:46:53 +00:00
Vikram S. Adve
10d007f835
Don't build Debug/ versions when ENABLE_OPTIMIZED is on.
...
llvm-svn: 3216
2002-08-02 18:34:12 +00:00
Chris Lattner
b55222222e
Fix bug: test/Regression/Transforms/GCSE/2002-05-21-NoSharedDominator.ll
...
llvm-svn: 3215
2002-08-02 18:06:01 +00:00
Chris Lattner
e980c93ebc
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
7c8f92eacc
Fix bug: test/Regression/Other/2002-08-02-DomSetProblem.ll
...
llvm-svn: 3213
2002-08-02 16:51:27 +00:00
Chris Lattner
5a89c835c6
Add a note about where to put miscompilation tests.
...
llvm-svn: 3212
2002-08-02 16:44:09 +00:00
Chris Lattner
829a3f1c3a
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
3cb4867479
New testcase for dominator problem
...
llvm-svn: 3209
2002-08-02 16:41:21 +00:00
Chris Lattner
ede834ac32
The verify pass is implicit
...
llvm-svn: 3208
2002-08-02 16:39:18 +00:00
Chris Lattner
4749976f52
New test
...
llvm-svn: 3207
2002-08-02 16:26:08 +00:00
Chris Lattner
b4527d9165
Tweak makefile after moving
...
llvm-svn: 3205
2002-08-02 16:10:24 +00:00
Chris Lattner
3b2db5cdbe
Verify is implicit for opt
...
llvm-svn: 3204
2002-08-01 22:26:32 +00:00
Chris Lattner
91a2826c02
Fix makefile to work.
...
llvm-svn: 3203
2002-08-01 20:50:54 +00:00
Chris Lattner
56312feb24
Fix broken testcase
...
llvm-svn: 3202
2002-08-01 20:50:03 +00:00
Chris Lattner
e54367de03
Make testcase legal LLVM
...
llvm-svn: 3201
2002-08-01 20:48:21 +00:00
Chris Lattner
b630b06f0d
Remove unneccesary #inlcude
...
llvm-svn: 3200
2002-08-01 20:01:02 +00:00
Chris Lattner
41280182a6
Enhance -time-passes to be more detailed and useful
...
llvm-svn: 3199
2002-08-01 19:33:09 +00:00
Vikram S. Adve
02b632401c
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
1e4ac639ad
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
f0389c0e0b
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
8adb533609
Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx
...
llvm-svn: 3195
2002-07-31 23:56:44 +00:00