diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-17 20:36:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-17 20:36:44 +0000 |
commit | c9b2a987a291434490fd5b3b6e98b9992916ece4 (patch) | |
tree | 8d15e446ffe463064e51ba5b79d7c82ee90434a6 /lib/Transforms/InstCombine | |
parent | 53727fc659af5f8fc51499fd875165533187d734 (diff) | |
download | llvm-c9b2a987a291434490fd5b3b6e98b9992916ece4.tar.gz llvm-c9b2a987a291434490fd5b3b6e98b9992916ece4.tar.bz2 llvm-c9b2a987a291434490fd5b3b6e98b9992916ece4.tar.xz |
Revert r137655. There is some question about whether the 'landingpad'
instruction should be marked as potentially reading and/or writing memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine')
-rw-r--r-- | lib/Transforms/InstCombine/InstructionCombining.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 47e7dd4c22..838678b9fa 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1418,7 +1418,8 @@ static bool TryToSinkInstruction(Instruction *I, BasicBlock *DestBlock) { assert(I->hasOneUse() && "Invariants didn't hold!"); // Cannot move control-flow-involving, volatile loads, vaarg, etc. - if (isa<PHINode>(I) || I->mayHaveSideEffects() || isa<TerminatorInst>(I)) + if (isa<PHINode>(I) || isa<LandingPadInst>(I) || I->mayHaveSideEffects() || + isa<TerminatorInst>(I)) return false; // Do not sink alloca instructions out of the entry block. |