[Mlir-commits] [mlir] [mlir][arith] Fix crash when narrowing or truncating to i0 (PR #179894)
Akimasa Watanuki
llvmlistbot at llvm.org
Thu Feb 5 05:25:10 PST 2026
================
@@ -347,6 +347,9 @@ struct NarrowElementwise final : OpTraitRewritePattern<OpTrait::Elementwise> {
op, "no operands or operand types don't match result type");
for (unsigned targetBitwidth : targetBitwidths) {
+ // Shoaib's Fix: Bitwidth must be at least 1 to be valid in MLIR.
----------------
Men-cotton wrote:
At least, the comment "Shoaib's Fix: " is unnecessary.
I think it is fine to drop all of this comment.
https://github.com/llvm/llvm-project/pull/179894
More information about the Mlir-commits
mailing list