Skip to content

Commit 44c5344

Browse files
committed
Fix build error
1 parent 0c92679 commit 44c5344

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ static VPValue *optimizeEarlyExitInductionUser(VPlan &Plan,
826826
static VPValue *optimizeLatchExitInductionUser(
827827
VPlan &Plan, VPTypeAnalysis &TypeInfo, VPBlockBase *PredVPBB, VPValue *Op,
828828
DenseMap<VPValue *, VPValue *> &EndValues,
829-
DenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs) {
829+
SmallDenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs) {
830830
using namespace VPlanPatternMatch;
831831

832832
VPValue *Incoming;
@@ -880,7 +880,7 @@ static VPValue *optimizeLatchExitInductionUser(
880880

881881
void VPlanTransforms::optimizeInductionExitUsers(
882882
VPlan &Plan, DenseMap<VPValue *, VPValue *> &EndValues,
883-
DenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs) {
883+
SmallDenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs) {
884884
VPBlockBase *MiddleVPBB = Plan.getMiddleBlock();
885885
VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType());
886886
for (VPIRBasicBlock *ExitVPBB : Plan.getExitBlocks()) {

llvm/lib/Transforms/Vectorize/VPlanTransforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct VPlanTransforms {
213213
/// one step backwards.
214214
static void optimizeInductionExitUsers(
215215
VPlan &Plan, DenseMap<VPValue *, VPValue *> &EndValues,
216-
DenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs);
216+
SmallDenseMap<VPValue *, VPWidenInductionRecipe *> &MapIVs);
217217

218218
/// Add explicit broadcasts for live-ins and VPValues defined in \p Plan's entry block if they are used as vectors.
219219
static void materializeBroadcasts(VPlan &Plan);

0 commit comments

Comments
 (0)