[llvm-commits] [llvm] r128030 - /llvm/trunk/lib/Transforms/Utils/Local.cpp
Devang Patel
dpatel at apple.com
Mon Mar 21 15:04:45 PDT 2011
Author: dpatel
Date: Mon Mar 21 17:04:45 2011
New Revision: 128030
URL: http://llvm.org/viewvc/llvm-project?rev=128030&view=rev
Log:
Simplify.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=128030&r1=128029&r2=128030&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Mon Mar 21 17:04:45 2011
@@ -216,13 +216,12 @@
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;
More information about the llvm-commits
mailing list