Add a comment about how Imm can be used for loop-variant values.
authorDan Gohman <gohman@apple.com>
Fri, 20 Feb 2009 20:29:04 +0000 (20:29 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Feb 2009 20:29:04 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65147 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 1edd10e3d8ebfc104cc9a2a021b7d69edeb95cb2..e3f7fbd522f6dfba4e48d590ba2a751577c72dfb 100644 (file)
@@ -666,7 +666,8 @@ namespace {
 
     /// Imm - The immediate value that should be added to the base immediately
     /// before Inst, because it will be folded into the imm field of the
-    /// instruction.
+    /// instruction.  This is also sometimes used for loop-variant values that
+    /// must be added inside the loop.
     SCEVHandle Imm;
 
     /// Phi - The induction variable that performs the striding that