constprop doesn't delete dead instructions, it just makes them dead.
authorChris Lattner <sabre@nondot.org>
Tue, 7 May 2002 20:25:44 +0000 (20:25 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 May 2002 20:25:44 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2540 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ConstProp/basictest.ll
test/Transforms/ConstProp/nottest.ll
test/Transforms/ConstProp/remtest.ll

index 241d25f25e2752b57f29b672bb4aee72c901461f..65cfd35889ea094d3261a88580787ec449cb9327 100644 (file)
@@ -1,7 +1,7 @@
 ; This is a basic sanity check for constant propogation.  The add instruction 
 ; should be eliminated.
 
-; RUN: if as < %s | opt -constprop | dis | grep add
+; RUN: if as < %s | opt -constprop -die | dis | grep add
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index d5df709a73185145e7ce572d854a0435e3295443..cfff9aebab01be9dd6cd591bee9b90e9e57f4728 100644 (file)
@@ -1,6 +1,6 @@
 ; Ensure constant propogation of 'not' instructions is working correctly.
 
-; RUN: if as < %s | opt -constprop | dis | grep not
+; RUN: if as < %s | opt -constprop -die | dis | grep not
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index ae418a8d6c5f9e8ce7552d50019937601f17034a..d3be9350edc070b3a3887fb79cf182d1bb48d048 100644 (file)
@@ -1,6 +1,6 @@
 ; Ensure constant propogation of remainder instructions is working correctly.
 
-; RUN: if as < %s | opt -constprop | dis | grep rem
+; RUN: if as < %s | opt -constprop -die | dis | grep rem
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi