Updates to support
authorChris Lattner <sabre@nondot.org>
Mon, 11 Jun 2001 15:05:02 +0000 (15:05 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Jun 2001 15:05:02 +0000 (15:05 +0000)
* Changes in PHI node structure
* We now run DCE after inlining because it helps clean up LOTS of inlining
  gunk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/TestOptimizer.sh
test/Feature/basictest.ll

index eecc16347a9a49b2c949783713bb9b8565cc9035..d7442a7af51ccfa2102e88a19ca9446c48dc281b 100755 (executable)
@@ -3,7 +3,7 @@ LD_LIBRARY_PATH=../lib/Assembly/Parser/Debug:../lib/Assembly/Writer/Debug:../lib
 export LD_LIBRARY_PATH
 
 
-../tools/as/as < $1 | ../tools/opt/opt -q -inline -constprop -dce | ../tools/dis/dis | ../tools/as/as > $1.bc.1 || exit 1
+../tools/as/as < $1 | ../tools/opt/opt -q -inline -dce -constprop -dce | ../tools/dis/dis | ../tools/as/as > $1.bc.1 || exit 1
 
 # Should not be able to optimize further!
 ../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
index b50c4f3f67d537b2bb84ed61bc5fdacb71bc4eab..0a2fd3e951874d6da6596186e6f8f20342215475 100644 (file)
@@ -10,7 +10,7 @@ Startup:                               ; Basic block #0
        br bool %x, label %Increment, label %Decrement
 
 Merge:                                 ; Basic block #3
-       %i4 = phi int %i2, %i3          ; Forward ref vars...
+       %i4 = phi int [%i2, %Increment], [%i3,%Decrement] ; Forward ref vars...
        %j2 = add int %j1, %i4
        ret void