mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +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 (DDI->getAddress())
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
} else if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
|
||||
return true;
|
||||
}
|
||||
if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
|
||||
if (DVI->getValue())
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!I->mayHaveSideEffects()) return true;
|
||||
|
Reference in New Issue
Block a user