[llvm-commits] [llvm] r169671 - /llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Shuxin Yang
shuxin.llvm at gmail.com
Fri Dec 7 21:00:59 PST 2012
Author: shuxin_yang
Date: Fri Dec 7 23:00:59 2012
New Revision: 169671
URL: http://llvm.org/viewvc/llvm-project?rev=169671&view=rev
Log:
Fix an inadvertent typo error.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp?rev=169671&r1=169670&r2=169671&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp Fri Dec 7 23:00:59 2012
@@ -455,7 +455,7 @@
continue;
PHINode *Phi = dyn_cast<PHINode>(Inst->getOperand(0));
- if (!Phi && Phi->getParent() != LoopEntry)
+ if (!Phi || Phi->getParent() != LoopEntry)
continue;
// Check if the result of the instruction is live of the loop.
More information about the llvm-commits
mailing list