llvm-6502/test/CodeGen
Evan Cheng 02c4285643 Fixes a nasty dag combiner bug that causes a bunch of tests to fail at -O0.
It's not safe to use the two value CombineTo variant to combine away a dead load.
e.g. 
v1, chain2 = load chain1, loc
v2, chain3 = load chain2, loc
v3         = add v2, c 
Now we replace use of v1 with undef, use of chain2 with chain1.
ReplaceAllUsesWith() will iterate through uses of the first load and update operands:
v1, chain2 = load chain1, loc
v2, chain3 = load chain1, loc
v3         = add v2, c 
Now the second load is the same as the first load, SelectionDAG cse will ensure
the use of second load is replaced with the first load.
v1, chain2 = load chain1, loc
v3         = add v1, c
Then v1 is replaced with undef and bad things happen.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46099 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-16 23:11:54 +00:00
..
Alpha xfail a test 2007-11-28 05:37:13 +00:00
ARM Remove xfail. This is fixed. 2007-12-20 02:25:21 +00:00
CBackend Change all floating constants that are not exactly 2007-09-05 17:50:36 +00:00
CellSPU More CellSPU refinements: 2008-01-11 21:01:19 +00:00
Generic new testcase for llvm.trap. 2008-01-15 22:17:26 +00:00
IA64 Convert .cvsignore files 2007-06-29 16:35:07 +00:00
PowerPC add testcase for regression 2008-01-16 18:03:52 +00:00
SPARC Convert tests using "| wc -l | grep ..." to use the count script. 2007-08-15 13:36:28 +00:00
X86 Fixes a nasty dag combiner bug that causes a bunch of tests to fail at -O0. 2008-01-16 23:11:54 +00:00