[llvm-commits] [llvm] r134010 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Andrew Trick atrick at apple.com
Tue Jun 28 09:45:04 PDT 2011


Author: atrick
Date: Tue Jun 28 11:45:04 2011
New Revision: 134010

URL: http://llvm.org/viewvc/llvm-project?rev=134010&view=rev
Log:
cleanup: misleading comment.

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=134010&r1=134009&r2=134010&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Tue Jun 28 11:45:04 2011
@@ -1085,7 +1085,7 @@
   // simplification on the wide IVs.
   while (!LoopPhis.empty()) {
     // Evaluate as many IV expressions as possible before widening any IVs. This
-    // forces SCEV to propagate no-wrap flags before evaluating sign/zero
+    // forces SCEV to set no-wrap flags before evaluating sign/zero
     // extension. The first time SCEV attempts to normalize sign/zero extension,
     // the result becomes final. So for the most predictable results, we delay
     // evaluation of sign/zero extend evaluation until needed, and avoid running
@@ -1176,7 +1176,7 @@
   // Simplification works best when run before other consumers of SCEV. We
   // attempt to avoid evaluating SCEVs for sign/zero extend operations until
   // other expressions involving loop IVs have been evaluated. This helps SCEV
-  // propagate no-wrap flags before normalizing sign/zero extension.
+  // set no-wrap flags before normalizing sign/zero extension.
   if (DisableIVRewrite) {
     Rewriter.disableCanonicalMode();
     SimplifyIVUsersNoRewrite(L, Rewriter);





More information about the llvm-commits mailing list