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:
b88e420
)
Reject ICMP_NE as index split condition.
author
Devang Patel
<dpatel@apple.com>
Fri, 24 Aug 2007 06:02:25 +0000
(06:02 +0000)
committer
Devang Patel
<dpatel@apple.com>
Fri, 24 Aug 2007 06:02:25 +0000
(06:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41357
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopIndexSplit.cpp
b/lib/Transforms/Scalar/LoopIndexSplit.cpp
index 6b69ecefef038f9564912e3ef27fbe0728a9187a..93d6309c484c09fb79f57dde3fad3f9179f01927 100644
(file)
--- a/
lib/Transforms/Scalar/LoopIndexSplit.cpp
+++ b/
lib/Transforms/Scalar/LoopIndexSplit.cpp
@@
-338,6
+338,9
@@
void LoopIndexSplit::findSplitCondition() {
if (!CI || CI == ExitCondition)
return;
+ if (CI->getPredicate() == ICmpInst::ICMP_NE)
+ return;
+
// If one operand is loop invariant and second operand is SCEVAddRecExpr
// based on induction variable then CI is a candidate split condition.
Value *V0 = CI->getOperand(0);