From: Chris Lattner Date: Tue, 7 May 2002 20:25:44 +0000 (+0000) Subject: constprop doesn't delete dead instructions, it just makes them dead. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a1581bfa897183157b891b4b514e5186e06ca45;p=oota-llvm.git constprop doesn't delete dead instructions, it just makes them dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/ConstProp/basictest.ll b/test/Transforms/ConstProp/basictest.ll index 241d25f25e2..65cfd35889e 100644 --- a/test/Transforms/ConstProp/basictest.ll +++ b/test/Transforms/ConstProp/basictest.ll @@ -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 diff --git a/test/Transforms/ConstProp/nottest.ll b/test/Transforms/ConstProp/nottest.ll index d5df709a731..cfff9aebab0 100644 --- a/test/Transforms/ConstProp/nottest.ll +++ b/test/Transforms/ConstProp/nottest.ll @@ -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 diff --git a/test/Transforms/ConstProp/remtest.ll b/test/Transforms/ConstProp/remtest.ll index ae418a8d6c5..d3be9350edc 100644 --- a/test/Transforms/ConstProp/remtest.ll +++ b/test/Transforms/ConstProp/remtest.ll @@ -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