From: Florian Hahn Date: Tue, 13 Sep 2022 08:09:18 +0000 (+0100) Subject: [LV] Mark Instr as const in scalarizeInstruction. (NFC). X-Git-Tag: upstream/17.0.6~33698 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac80b0e84f7cbcce13ddafa3207635a981cf0286;p=platform%2Fupstream%2Fllvm.git [LV] Mark Instr as const in scalarizeInstruction. (NFC). This is to reduce the diff in follow-up changes. --- diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 792ae26..d926cb5 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -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,