mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
A landingpad instruction is neither folded nor dead.
llvm-svn: 138387
This commit is contained in:
parent
b65ec7c64f
commit
3de8a041b7
@ -808,6 +808,7 @@ static bool isFoldedOrDeadInstruction(const Instruction *I,
|
||||
return !I->mayWriteToMemory() && // Side-effecting instructions aren't folded.
|
||||
!isa<TerminatorInst>(I) && // Terminators aren't folded.
|
||||
!isa<DbgInfoIntrinsic>(I) && // Debug instructions aren't folded.
|
||||
!isa<LandingPadInst>(I) && // Landingpad instructions aren't folded.
|
||||
!FuncInfo->isExportedInst(I); // Exported instrs must be computed.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user