Skip to content

Commit ea787ad

Browse files
committed
NFC: Only capture TTI in lambda
1 parent 0ba19fb commit ea787ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ class LoopVectorizationCostModel {
10241024
/// Check if any of the tracked live intervals exceeds the number of
10251025
/// available registers for the target.
10261026
bool exceedsMaxNumRegs(const TargetTransformInfo &TTI) {
1027-
return any_of(MaxLocalUsers, [&](auto &LU) {
1027+
return any_of(MaxLocalUsers, [&TTI](auto &LU) {
10281028
return LU.second > TTI.getNumberOfRegisters(LU.first);
10291029
});
10301030
}

0 commit comments

Comments
 (0)