mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
Don't sink the instruction to before a landingpad instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d30243402b
commit
6456a62178
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user