[llvm] ac80b0e - [LV] Mark Instr as const in scalarizeInstruction. (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 01:10:35 PDT 2022
Author: Florian Hahn
Date: 2022-09-13T09:10:02+01:00
New Revision: ac80b0e84f7cbcce13ddafa3207635a981cf0286
URL: https://github.com/llvm/llvm-project/commit/ac80b0e84f7cbcce13ddafa3207635a981cf0286
DIFF: https://github.com/llvm/llvm-project/commit/ac80b0e84f7cbcce13ddafa3207635a981cf0286.diff
LOG: [LV] Mark Instr as const in scalarizeInstruction. (NFC).
This is to reduce the diff in follow-up changes.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 792ae261b17a3..d926cb5bdf21a 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -498,7 +498,8 @@ class InnerLoopVectorizer {
/// 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,
More information about the llvm-commits
mailing list