summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2012-12-08 05:00:59 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2012-12-08 05:00:59 +0000
commit9c5c97647fbf641d5733910cd93b0ecb4448f77b (patch)
treeb4e56a35720c40568ab720260175e8f3ad2b6976 /llvm/lib
parent1a2532b3feb3c5d740594d684f98794d364ced90 (diff)
downloadbcm5719-llvm-9c5c97647fbf641d5733910cd93b0ecb4448f77b.tar.gz
bcm5719-llvm-9c5c97647fbf641d5733910cd93b0ecb4448f77b.zip
Fix an inadvertent typo error.
llvm-svn: 169671
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 153fedf2c37..8f929941d59 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -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.
OpenPOWER on IntegriCloud