mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
A landingpad instruction is neither folded nor dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5aa29a0cff
commit
4477d691ed
@ -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…
x
Reference in New Issue
Block a user