Make makeLoopInvariant report whether it made any changes or not,
[oota-llvm.git] / include / llvm / Analysis / LoopInfo.h
index 90afc01da066a44c416879b421263829f34a0488..de9a30d281a68fd0aa673384127d705287af1994 100644 (file)
@@ -490,7 +490,8 @@ public:
   /// If InsertPt is specified, it is the point to hoist instructions to.
   /// If null, the terminator of the loop preheader is used.
   ///
-  bool makeLoopInvariant(Value *V, Instruction *InsertPt = 0) const;
+  bool makeLoopInvariant(Value *V, bool &Changed,
+                         Instruction *InsertPt = 0) const;
 
   /// makeLoopInvariant - If the given instruction is inside of the
   /// loop and it can be hoisted, do so to make it trivially loop-invariant.
@@ -501,7 +502,8 @@ public:
   /// If InsertPt is specified, it is the point to hoist instructions to.
   /// If null, the terminator of the loop preheader is used.
   ///
-  bool makeLoopInvariant(Instruction *I, Instruction *InsertPt = 0) const;
+  bool makeLoopInvariant(Instruction *I, bool &Changed,
+                         Instruction *InsertPt = 0) const;
 
   /// getCanonicalInductionVariable - Check to see if the loop has a canonical
   /// induction variable: an integer recurrence that starts at 0 and increments