Skip to content

Commit ea3ff84

Browse files
kazutakahirataGeorgeARM
authored andcommitted
[Transforms] Use SmallMapVector::contains (NFC) (llvm#138645)
1 parent 675018f commit ea3ff84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5035,7 +5035,7 @@ LoopVectorizationCostModel::selectInterleaveCount(VPlan &Plan, ElementCount VF,
50355035
}
50365036
unsigned MaxLocalUsers = Pair.second;
50375037
unsigned LoopInvariantRegs = 0;
5038-
if (R.LoopInvariantRegs.find(Pair.first) != R.LoopInvariantRegs.end())
5038+
if (R.LoopInvariantRegs.contains(Pair.first))
50395039
LoopInvariantRegs = R.LoopInvariantRegs[Pair.first];
50405040

50415041
unsigned TmpIC = llvm::bit_floor((TargetNumRegisters - LoopInvariantRegs) /

0 commit comments

Comments
 (0)