Chris Lattner
218d43af10
Fix PR1304 and Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll
...
llvm-svn: 35792
2007-04-09 01:37:55 +00:00
Chris Lattner
34065e8986
new testcase for PR1304
...
llvm-svn: 35791
2007-04-09 01:37:35 +00:00
Reid Spencer
4ea619ae00
Remove redundancy.
...
llvm-svn: 35790
2007-04-09 01:26:02 +00:00
Chris Lattner
958d804293
Fix a bug introduced with my previous patch, where it didn't correctly handle
...
instructions which replace themselves when FI's are rewritten (common on ppc).
This fixes CodeGen/PowerPC/2006-10-17-ppc64-alloca.ll
llvm-svn: 35789
2007-04-09 01:19:33 +00:00
Chris Lattner
b3d105a4f9
Eliminate useless insertelement instructions. This implements
...
Transforms/InstCombine/vec_insertelt.ll and fixes PR1286.
We now compile the code from that bug into:
_foo:
movl 4(%esp), %eax
movdqa (%eax), %xmm0
movl 8(%esp), %ecx
psllw (%ecx), %xmm0
movdqa %xmm0, (%eax)
ret
instead of:
_foo:
subl $4, %esp
movl %ebp, (%esp)
movl %esp, %ebp
movl 12(%ebp), %eax
movdqa (%eax), %xmm0
#IMPLICIT_DEF %eax
pinsrw $2, %eax, %xmm0
xorl %ecx, %ecx
pinsrw $3, %ecx, %xmm0
pinsrw $4, %eax, %xmm0
pinsrw $5, %ecx, %xmm0
pinsrw $6, %eax, %xmm0
pinsrw $7, %ecx, %xmm0
movl 8(%ebp), %eax
movdqa (%eax), %xmm1
psllw %xmm0, %xmm1
movdqa %xmm1, (%eax)
movl %ebp, %esp
popl %ebp
ret
woo :)
llvm-svn: 35788
2007-04-09 01:11:16 +00:00
Chris Lattner
4fd4438601
new testcase for PR1286
...
llvm-svn: 35787
2007-04-09 01:10:13 +00:00
Owen Anderson
f9a432a613
Cleanup some from my DomSet-removal changes. Add a new
...
isReachableFromEntry
test to ETForest to factor a common test out of code.
llvm-svn: 35786
2007-04-09 00:52:49 +00:00
Chris Lattner
1a746d3b8e
Fix CodeGen/Generic/2007-04-08-MultipleFrameIndices.ll and PR1308:
...
some instructions can have multiple frame indices in them. If this happens,
rewrite all of them.
llvm-svn: 35785
2007-04-09 00:46:10 +00:00
Chris Lattner
5a5aeaf596
new testcase for PR1308
...
llvm-svn: 35784
2007-04-09 00:45:42 +00:00
Chris Lattner
5f8b0c2acc
Fix PR1316
...
llvm-svn: 35783
2007-04-09 00:33:58 +00:00
Reid Spencer
aedaf87e5e
No functional change, this is just easier to read and debug.
...
llvm-svn: 35782
2007-04-08 23:58:41 +00:00
Reid Spencer
52e3bd1df0
Fix a typo.
...
llvm-svn: 35781
2007-04-08 22:50:29 +00:00
Reid Spencer
bcb7b5ca5d
Implement more feedback:
...
* Allow attributes to be added and removed singly or jointly so that in
the future something like -pruneh can manipulate them more easily.
* Move functions generally only useful for LLVM internals to the end of
the accessors list instead of the beginning.
llvm-svn: 35780
2007-04-08 22:30:27 +00:00
Chris Lattner
f9506a185b
Fix for CodeGen/X86/2007-04-08-InlineAsmCrash.ll and PR1314
...
llvm-svn: 35779
2007-04-08 22:23:26 +00:00
Chris Lattner
b9f8792e26
testcase for PR1314
...
llvm-svn: 35778
2007-04-08 22:22:53 +00:00
Reid Spencer
065db06580
Implement review feedback.
...
llvm-svn: 35777
2007-04-08 22:05:44 +00:00
Nick Lewycky
7f42a891cf
Fix this testcase to fail if the bug were reintroduced.
...
llvm-svn: 35776
2007-04-08 21:49:13 +00:00
Owen Anderson
4b323657b9
Remove DomSet completely. This concludes work on PR1171.
...
llvm-svn: 35775
2007-04-08 21:30:05 +00:00
Jeff Cohen
922b3dc017
Track new header file.
...
llvm-svn: 35774
2007-04-08 21:19:52 +00:00
Reid Spencer
82c0c6353b
Make sure temporary data is not used past its life span.
...
llvm-svn: 35773
2007-04-08 20:10:14 +00:00
Reid Spencer
b60fbb02e4
Make TempDir a PathWithStatus so we don't have to cast it to one.
...
llvm-svn: 35772
2007-04-08 20:08:01 +00:00
Reid Spencer
a7785f7098
Avoid temporary construction and potential for corrupted data access.
...
llvm-svn: 35771
2007-04-08 20:06:05 +00:00
Reid Spencer
e62f16d5c6
Implement the output inserter for PathWithStatus
...
llvm-svn: 35770
2007-04-08 20:05:10 +00:00
Reid Spencer
2d2f6992e7
Don't rely on destructed local storage. Thanks, Chris.
...
llvm-svn: 35769
2007-04-08 19:59:07 +00:00
Chris Lattner
4ed32d0891
Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315)
...
llvm-svn: 35768
2007-04-08 18:11:26 +00:00
Reid Spencer
8b99493ea3
For PR1146:
...
New header file to provide parameter attribute declarations.
llvm-svn: 35767
2007-04-08 14:46:50 +00:00
Chris Lattner
ebcaddce4b
this xform is correct, not an xfail
...
llvm-svn: 35766
2007-04-08 08:02:39 +00:00
Chris Lattner
1a1b798eb5
reenable this xform, whoops :)
...
llvm-svn: 35765
2007-04-08 08:01:49 +00:00
Chris Lattner
41babccd55
make xfail info more nice
...
llvm-svn: 35764
2007-04-08 07:58:41 +00:00
Chris Lattner
1760b42378
Fix regression on Instcombine/apint-or2.ll
...
llvm-svn: 35763
2007-04-08 07:55:22 +00:00
Chris Lattner
3146667442
tweak this to test the right thing.
...
llvm-svn: 35762
2007-04-08 07:52:40 +00:00
Chris Lattner
9a765178c8
testrunner should print out xfail info.
...
llvm-svn: 35761
2007-04-08 07:49:19 +00:00
Chris Lattner
d435e0bfd2
Generalize the code that handles (A&B)|(A&C) to work where B/C are not constants.
...
Add a new xform to simplify (A&B)|(~A&C). THis implements InstCombine/or2.ll:test1
llvm-svn: 35760
2007-04-08 07:47:01 +00:00
Chris Lattner
769c8c5bc7
new testcase, should simplify down to a xor/and/xor sequence.
...
llvm-svn: 35759
2007-04-08 07:45:36 +00:00
Chris Lattner
34464bdf2b
implement a fixme: move optimizations for fwrite out of fputs into a new
...
fwrite optimizer.
llvm-svn: 35758
2007-04-08 07:00:35 +00:00
Nick Lewycky
71592d1ef2
Remove DominatorSet usage from LoopSimplify. Patch from Owen Anderson.
...
llvm-svn: 35757
2007-04-08 01:04:30 +00:00
Nick Lewycky
26652f5681
Don't crash when encountering a BasicBlock that hasn't been registered yet.
...
llvm-svn: 35756
2007-04-08 01:02:12 +00:00
Chris Lattner
16fe035aa4
Significantly simplify the clients of GetConstantStringInfo, by having it
...
just return the string itself.
llvm-svn: 35755
2007-04-07 21:58:02 +00:00
Chris Lattner
5b3be230d4
Fix problems in the sprintf optimizer
...
llvm-svn: 35754
2007-04-07 21:17:51 +00:00
Chris Lattner
99a7ea0b00
Change CastToCStr to take a pointer instead of a reference.
...
Fix some miscompilations in fprintf optimizer.
llvm-svn: 35753
2007-04-07 21:04:50 +00:00
Jeff Cohen
d40c15afaa
Unbreak VC++ build.
...
llvm-svn: 35751
2007-04-07 20:47:27 +00:00
Chris Lattner
8fd39019e0
these test a pass that no longer exists.
...
llvm-svn: 35750
2007-04-07 20:25:30 +00:00
Chris Lattner
fcc6fe0a9c
Fix an off-by-one error that broke Prolangs/deriv2 with llc on x86
...
and Prolangs-C/cdecl
llvm-svn: 35749
2007-04-07 20:19:08 +00:00
Chris Lattner
cc81108ac2
xfail these until owen can figure out the right fix
...
llvm-svn: 35748
2007-04-07 20:00:36 +00:00
Reid Spencer
fb17dbb809
Avoid a useless temporary constrution.
...
llvm-svn: 35747
2007-04-07 19:51:45 +00:00
Reid Spencer
aad3d1f6c8
For PR1291:
...
Change to use PathWithStatus
llvm-svn: 35746
2007-04-07 19:50:21 +00:00
Reid Spencer
543d051aad
Update for PathWithStatus
...
llvm-svn: 35745
2007-04-07 19:49:35 +00:00
Reid Spencer
845c291c87
Fix another PathWithStatus issue.
...
llvm-svn: 35744
2007-04-07 19:45:30 +00:00
Reid Spencer
875a2bc4db
For PR1291:
...
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
llvm-svn: 35743
2007-04-07 18:53:16 +00:00
Reid Spencer
14fb379888
For PR1291:
...
Implement the PathWithStatus class and its use throughout lib/System.
llvm-svn: 35742
2007-04-07 18:52:17 +00:00