diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-27 18:09:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-27 18:09:25 +0000 |
commit | e82c217b2fe86419e4b6883b75b74aeaa0e7fe08 (patch) | |
tree | 46ebdeea69bfc4dd951abea0b79be207581464dc | |
parent | a3b47cae4c11d89bba5599f89d93c258965a7067 (diff) | |
download | bcm5719-llvm-e82c217b2fe86419e4b6883b75b74aeaa0e7fe08.tar.gz bcm5719-llvm-e82c217b2fe86419e4b6883b75b74aeaa0e7fe08.zip |
setcond instructions don't have aliasing implications.
llvm-svn: 11919
-rw-r--r-- | llvm/lib/Transforms/IPO/GlobalConstifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalConstifier.cpp b/llvm/lib/Transforms/IPO/GlobalConstifier.cpp index 8f6cbbdfda6..c30ec5f47c1 100644 --- a/llvm/lib/Transforms/IPO/GlobalConstifier.cpp +++ b/llvm/lib/Transforms/IPO/GlobalConstifier.cpp @@ -20,7 +20,7 @@ #include "llvm/Transforms/IPO.h" #include "llvm/Constants.h" -#include "llvm/iMemory.h" +#include "llvm/Instructions.h" #include "llvm/Module.h" #include "llvm/Pass.h" #include "Support/Debug.h" @@ -57,7 +57,7 @@ static bool isStoredThrough(Value *V) { } else if (Instruction *I = dyn_cast<Instruction>(*UI)) { if (I->getOpcode() == Instruction::GetElementPtr) { if (isStoredThrough(I)) return true; - } else if (!isa<LoadInst>(*UI)) + } else if (!isa<LoadInst>(*UI) && !isa<SetCondInst>(*UI)) return true; // Any other non-load instruction might store! } else { // Otherwise must be a global or some other user. |