From 7d91d81c6b6a456ca2362b691485c8e1b42809dd Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 24 Mar 2021 17:46:05 +0100 Subject: [PATCH] [polly] Fix build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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); --- polly/lib/Transform/ScheduleOptimizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp index 493448a..acdfde1 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."); -- 2.7.4