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:
8f49168
)
Use iterators instead of indices.
author
Dan Gohman
<gohman@apple.com>
Sun, 29 Aug 2010 14:52:02 +0000
(14:52 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sun, 29 Aug 2010 14:52:02 +0000
(14:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112428
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index 9bc3aa93539ad8480e2886e5ee0431af07c42c42..d790e34adec0300b0d869e1f4a3a23e57f3899fe 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-340,8
+340,8
@@
bool SCEVAddRecExpr::isLoopInvariant(const Loop *QueryLoop) const {
// This recurrence is variant w.r.t. QueryLoop if any of its operands
// are variant.
- for (
unsigned i = 0, e = getNumOperands(); i != e; ++i
)
- if (!
getOperand(i
)->isLoopInvariant(QueryLoop))
+ for (
op_iterator I = op_begin(), E = op_end(); I != E; ++I
)
+ if (!
(*I
)->isLoopInvariant(QueryLoop))
return false;
// Otherwise it's loop-invariant.