Fix an inadvertent typo error.

llvm-svn: 169671
This commit is contained in:
Shuxin Yang 2012-12-08 05:00:59 +00:00
parent 762d7408db
commit d80db0a201

View 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.