We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba19fb commit ea787adCopy full SHA for ea787ad
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1024,7 +1024,7 @@ class LoopVectorizationCostModel {
1024
/// Check if any of the tracked live intervals exceeds the number of
1025
/// available registers for the target.
1026
bool exceedsMaxNumRegs(const TargetTransformInfo &TTI) {
1027
- return any_of(MaxLocalUsers, [&](auto &LU) {
+ return any_of(MaxLocalUsers, [&TTI](auto &LU) {
1028
return LU.second > TTI.getNumberOfRegisters(LU.first);
1029
});
1030
}
0 commit comments