[Mlir-commits] [mlir] [mlir][vector] Skip uniform vectorization for non scalar type (PR #128294)
Longsheng Mou
llvmlistbot at llvm.org
Fri Feb 21 23:51:05 PST 2025
================
@@ -1106,6 +1106,10 @@ static bool isUniformDefinition(Value value,
if (!loop.isDefinedOutsideOfLoop(value))
return false;
}
+
+ if (!isa<IndexType, IntegerType, FloatType>(value.getType()))
----------------
CoTinker wrote:
[nit] And I think use `isIntOrIndexOrFloat()` is more concise, but it's up to you.
https://github.com/llvm/llvm-project/pull/128294
More information about the Mlir-commits
mailing list