[Mlir-commits] [mlir] [MLIR][LLVM] Support inrange in GEP (PR #220424)
Tobias Gysi
llvmlistbot at llvm.org
Mon Sep 14 12:02:53 PDT 2026
================
@@ -463,3 +463,20 @@ llvm.func @empty_struct_not_destructured() -> !llvm.struct<()> {
%2 = llvm.load %1 : !llvm.ptr -> !llvm.struct<()>
llvm.return %2 : !llvm.struct<()>
}
+
+// -----
+
+// inrange is defined relative to the GEP result, so SROA must keep it on the
+// rewritten GEP even when the new GEP would otherwise fold (offset 0).
----------------
gysit wrote:
nit: similar to above I would focus on the fact that an inrange gep on an alloca is illegal and we want to conservatively bail out in SROA.
https://github.com/llvm/llvm-project/pull/220424
More information about the Mlir-commits
mailing list