Fix an inadvertent typo error.
authorShuxin Yang <shuxin.llvm@gmail.com>
Sat, 8 Dec 2012 05:00:59 +0000 (05:00 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Sat, 8 Dec 2012 05:00:59 +0000 (05:00 +0000)
llvm-svn: 169671

llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp

index 153fedf..8f92994 100644 (file)
@@ -455,7 +455,7 @@ bool NclPopcountRecognize::detectIdiom(Instruction *&CntInst,
         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.