Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128030 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2011-03-21 22:04:45 +00:00
parent 1f7bc701b0
commit b99462117e

View File

@ -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;