[llvm] [LSROA] Add logical SROA pass (PR #192058)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 02:45:12 PDT 2026
================
@@ -15318,6 +15318,27 @@ If the source pointer is poison, the instruction returns poison.
The resulting pointer belongs to the same address space as ``source``.
This instruction does not dereference the pointer.
+Aliasing rules:
+"""""""""""""""
+
+Common :ref:`aliasing rules <pointeraliasing>` apply to pointers returned
+by this intrinsic, as well as the following additional rules:
+
+- A pointer returned by `@llvm.structured.gep` for a given element is
+ considered not to alias with pointers the instruction would return for
+ a sibling element.
+
+.. code-block:: llvm
+
+ %S = { i32, i32 }
+ %ptr = call ptr @llvm.structured.gep(ptr elementtype(%S) %src, i32 0)
+ %res = load i64, ptr %ptr
----------------
Keenuts wrote:
The second pointer is implied:
What we this explains is the you cannot load the second field of `%S` through `ptr`, even by loading 64 bits (which would be possible for a normal GEP)
Rephrased it to make the second pointer explicit.
https://github.com/llvm/llvm-project/pull/192058
More information about the llvm-commits
mailing list