summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IVUsers.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-05-27 18:42:33 +0000
committerDan Gohman <gohman@apple.com>2011-05-27 18:42:33 +0000
commitc6f2ddfc04078088a503cde52200f4476fc4a4a4 (patch)
treedd75530ee34998875010a0ec0208dfacc837bc8b /llvm/lib/Analysis/IVUsers.cpp
parent942e1c10f6a39f4516f3ee670b157cae479397a5 (diff)
downloadbcm5719-llvm-c6f2ddfc04078088a503cde52200f4476fc4a4a4.tar.gz
bcm5719-llvm-c6f2ddfc04078088a503cde52200f4476fc4a4a4.zip
Update this comment.
llvm-svn: 132202
Diffstat (limited to 'llvm/lib/Analysis/IVUsers.cpp')
-rw-r--r--llvm/lib/Analysis/IVUsers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp
index 2fde73d952e..a0c42f0cbfa 100644
--- a/llvm/lib/Analysis/IVUsers.cpp
+++ b/llvm/lib/Analysis/IVUsers.cpp
@@ -152,7 +152,9 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I, PHINode *Phi) {
// Okay, we found a user that we cannot reduce.
IVUses.push_back(new IVStrideUse(this, User, I, Phi));
IVStrideUse &NewUse = IVUses.back();
- // Transform the expression into a normalized form.
+ // Autodetect the post-inc loop set, populating NewUse.PostIncLoops.
+ // The regular return value here is discarded; instead of recording
+ // it, we just recompute it when we need it.
ISE = TransformForPostIncUse(NormalizeAutodetect,
ISE, User, I,
NewUse.PostIncLoops,
OpenPOWER on IntegriCloud