diff options
author | Andrew Trick <atrick@apple.com> | 2015-05-18 16:49:31 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2015-05-18 16:49:31 +0000 |
commit | 018e55a18751000a153d4bd3ed4637970fb6f03e (patch) | |
tree | 4d090ef0b474cad29396a87b72ceae6d357ee40e /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | c49e78851cbb665bce954f68ac202ef25626d5a1 (diff) | |
download | bcm5719-llvm-018e55a18751000a153d4bd3ed4637970fb6f03e.tar.gz bcm5719-llvm-018e55a18751000a153d4bd3ed4637970fb6f03e.zip |
SimplifyIV comments and dead argument cleanup.
Remove crufty comments. IVUsers hasn't been used here for a long time.
llvm-svn: 237586
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index ab8e5b8cc02..2ba3109354b 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -622,9 +622,8 @@ void IndVarSimplify::RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) { } } - // If we were unable to completely replace the PHI node, clone the PHI - // and delete the original one. This lets IVUsers and any other maps - // purge the original user from their records. + // If we were unable to completely replace the PHI node, clone the PHI and + // delete the original one. This purges the original phi. if (!LCSSASafePhiForRAUW) { PHINode *NewPN = cast<PHINode>(PN->clone()); NewPN->takeName(PN); @@ -915,8 +914,8 @@ const SCEVAddRecExpr* WidenIV::GetExtendedOperandRecurrence(NarrowIVDefUse DU) { return AddRec; } -/// GetWideRecurrence - Is this instruction potentially interesting from -/// IVUsers' perspective after widening it's type? In other words, can the +/// GetWideRecurrence - Is this instruction potentially interesting for further +/// simplification after widening it's type? In other words, can the /// extend be safely hoisted out of the loop with SCEV reducing the value to a /// recurrence on the same loop. If so, return the sign or zero extended /// recurrence. Otherwise return NULL. |