[Mlir-commits] [mlir] [MLIR][Arith] Fix index_cast/index_castui chain folding to check intermediate width (PR #189042)

Krzysztof Drewniak llvmlistbot at llvm.org
Sat Mar 28 13:06:23 PDT 2026


================
@@ -1909,6 +1909,15 @@ OpFoldResult arith::FPToSIOp::fold(FoldAdaptor adaptor) {
 // IndexCastOp
 //===----------------------------------------------------------------------===//
 
+/// Return the bit-width of \p t for the purpose of index_cast width checks.
+/// For vector types use the element type; index maps to its internal storage
+/// width (64 on all current targets).
----------------
krzysz00 wrote:

Yeah, it does

https://github.com/llvm/llvm-project/pull/189042


More information about the Mlir-commits mailing list