mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128030 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -216,13 +216,12 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
|
|||||||
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
|
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
|
||||||
if (DDI->getAddress())
|
if (DDI->getAddress())
|
||||||
return false;
|
return false;
|
||||||
else
|
return true;
|
||||||
return true;
|
}
|
||||||
} else if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
|
if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
|
||||||
if (DVI->getValue())
|
if (DVI->getValue())
|
||||||
return false;
|
return false;
|
||||||
else
|
return true;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!I->mayHaveSideEffects()) return true;
|
if (!I->mayHaveSideEffects()) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user