mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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:
parent
1f7bc701b0
commit
b99462117e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user