diff --git a/src/Dialect/Mlir/VectorMachineSupport.cpp b/src/Dialect/Mlir/VectorMachineSupport.cpp index 2e5ab3ef4a..75f46638a6 100644 --- a/src/Dialect/Mlir/VectorMachineSupport.cpp +++ b/src/Dialect/Mlir/VectorMachineSupport.cpp @@ -117,7 +117,8 @@ int64_t VectorMachineSupport::computeArchVectorLength(Type elementType) { int64_t totNum = vectorizedOpNum + scalarOpNum; if (!hasRegisterPressure) { // Estimate default register pressure as one per 2 vector operation. - maxVectorRegisterPressure = std::max(vectorizedOpNum / 2, (int64_t)1); + maxVectorRegisterPressure = + std::max(vectorizedOpNum / 2, static_cast(1)); } return totNum != 0 ? (1.0 * totProcessedValues) / (1.0 * totNum) : 1.0; } diff --git a/src/Runtime/OMSort.inc b/src/Runtime/OMSort.inc index fea3252751..fa65cc8433 100644 --- a/src/Runtime/OMSort.inc +++ b/src/Runtime/OMSort.inc @@ -89,7 +89,7 @@ typedef int( #pragma GCC diagnostic ignored "-Wcast-qual" #endif -#define Load(typeName, to, from) typeName (to) = (from) +#define Load(typeName, to, from) typeName to = from // Convert f16 elements to f32 for comparison because we don't have logic to // compare f16 elements directly on all platforms.