[LV] Mark Instr as const in scalarizeInstruction. (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 13 Sep 2022 08:09:18 +0000 (09:09 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 13 Sep 2022 08:10:02 +0000 (09:10 +0100)
This is to reduce the diff in follow-up changes.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index 792ae26..d926cb5 100644 (file)
@@ -498,7 +498,8 @@ public:
   /// and \p MaxLane, times each part between \p MinPart and \p MaxPart,
   /// inclusive. Uses the VPValue operands from \p RepRecipe instead of \p
   /// Instr's operands.
-  void scalarizeInstruction(Instruction *Instr, VPReplicateRecipe *RepRecipe,
+  void scalarizeInstruction(const Instruction *Instr,
+                            VPReplicateRecipe *RepRecipe,
                             const VPIteration &Instance, bool IfPredicateInstr,
                             VPTransformState &State);
 
@@ -2750,7 +2751,7 @@ void InnerLoopVectorizer::vectorizeInterleaveGroup(
   }
 }
 
-void InnerLoopVectorizer::scalarizeInstruction(Instruction *Instr,
+void InnerLoopVectorizer::scalarizeInstruction(const Instruction *Instr,
                                                VPReplicateRecipe *RepRecipe,
                                                const VPIteration &Instance,
                                                bool IfPredicateInstr,