llvm-project
35f4cdbf - [mlir][arith] Add constraints to the MulIOp for preventing type mismatch while folding (#136093)

Commit
202 days ago
[mlir][arith] Add constraints to the MulIOp for preventing type mismatch while folding (#136093) Fixes #135289 The original version didn't check if the types of lhs, rhs, and the result matched, which could cause type errors. This fix adds type checks to make sure the constants attributes have the same type as the SSA values before applying the simplification.
Author
Parents
Loading