diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-15 22:53:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-15 22:53:05 +0000 |
commit | 91d4e9edecaa8948c336ba49bc3f6b50bb3c7da4 (patch) | |
tree | 8bc4fffc69fa4a3a31be13b55299e71e621a1fc1 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | d9afc5c749aba22ac27b4708cc86b3737ed9d670 (diff) | |
download | bcm5719-llvm-91d4e9edecaa8948c336ba49bc3f6b50bb3c7da4.tar.gz bcm5719-llvm-91d4e9edecaa8948c336ba49bc3f6b50bb3c7da4.zip |
Don't sink the instruction to before a landingpad instruction.
llvm-svn: 137672
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 0a92efe37e9..f13733cf05c 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1436,7 +1436,7 @@ static bool TryToSinkInstruction(Instruction *I, BasicBlock *DestBlock) { } BasicBlock::iterator InsertPos = DestBlock->getFirstNonPHI(); - + if (isa<LandingPadInst>(InsertPos)) ++InsertPos; // Skip landingpad inst. I->moveBefore(InsertPos); ++NumSunkInst; return true; |