Skip to content

Commit 7d91d81

Browse files
committed
[polly] Fix build
This produced a compile error with GCC: llvm-project/polly/lib/Transform/ScheduleOptimizer.cpp:1220:49: error: cannot convert ‘bool’ to ‘llvm::TargetTransformInfo::RegisterKind’ 1220 | RegisterBitwidth = TTI->getRegisterBitWidth(true);
1 parent a6a1c30 commit 7d91d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

polly/lib/Transform/ScheduleOptimizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,8 @@ getMicroKernelParams(const TargetTransformInfo *TTI, MatMulInfoTy MMI) {
12171217
long RegisterBitwidth = VectorRegisterBitwidth;
12181218

12191219
if (RegisterBitwidth == -1)
1220-
RegisterBitwidth = TTI->getRegisterBitWidth(true);
1220+
RegisterBitwidth =
1221+
TTI->getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector);
12211222
auto ElementSize = getMatMulTypeSize(MMI);
12221223
assert(ElementSize > 0 && "The element size of the matrix multiplication "
12231224
"operands should be greater than zero.");

0 commit comments

Comments
 (0)