[polly] 7d91d81 - [polly] Fix build
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 24 09:46:58 PDT 2021
Author: Nikita Popov
Date: 2021-03-24T17:46:46+01:00
New Revision: 7d91d81c6b6a456ca2362b691485c8e1b42809dd
URL: https://github.com/llvm/llvm-project/commit/7d91d81c6b6a456ca2362b691485c8e1b42809dd
DIFF: https://github.com/llvm/llvm-project/commit/7d91d81c6b6a456ca2362b691485c8e1b42809dd.diff
LOG: [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);
Added:
Modified:
polly/lib/Transform/ScheduleOptimizer.cpp
Removed:
################################################################################
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 493448aeaa2fe..acdfde1fa5d2d 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -1217,7 +1217,8 @@ getMicroKernelParams(const TargetTransformInfo *TTI, MatMulInfoTy MMI) {
long RegisterBitwidth = VectorRegisterBitwidth;
if (RegisterBitwidth == -1)
- RegisterBitwidth = TTI->getRegisterBitWidth(true);
+ RegisterBitwidth =
+ TTI->getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector);
auto ElementSize = getMatMulTypeSize(MMI);
assert(ElementSize > 0 && "The element size of the matrix multiplication "
"operands should be greater than zero.");
More information about the llvm-commits
mailing list