[llvm] AMDGPU: Use the addrspacecast nonnull flag in codegen (PR #220926)

Robert Imschweiler via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 06:47:27 PDT 2026


================
@@ -424,13 +424,17 @@ struct SDNodeFlags {
     // Call does not require convergence guarantees.
     NoConvergent = 1 << 16,
 
+    // ISD::ADDRSPACECAST where the source is known not to be the null value of
+    // the source address space, so the result is poison if the source is null.
+    NonNull = 1 << 17,
----------------
ro-i wrote:

want to add printing for nonnull for SDNode, too?

https://github.com/llvm/llvm-project/blob/2ea93ca214dc1e63808b0d0f4c64fc43edba03b7/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp#L721

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


More information about the llvm-commits mailing list