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 | 7d90a2738e889efc5ff6e64c015c3b5cf5324aff (patch) | |
tree | 1af4098ce468081ac46a9a4a36b3bde0b8befa73 /lib/Transforms | |
parent | 2f1403a65f56747190648b572a541c2dac772a08 (diff) |
setcond instructions don't have aliasing implications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 8f6cbbdfda..c30ec5f47c 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.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. |