projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0956ae5
)
Fix an inadvertent typo error.
author
Shuxin Yang
<shuxin.llvm@gmail.com>
Sat, 8 Dec 2012 05:00:59 +0000
(
05:00
+0000)
committer
Shuxin Yang
<shuxin.llvm@gmail.com>
Sat, 8 Dec 2012 05:00:59 +0000
(
05:00
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169671
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 153fedf2c370513079dc11127b39ecab0fb5bb80..8f929941d59e5dfa3e215938807d5cca48b92e18 100644
(file)
--- a/
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/
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.