[llvm] AMDGPU: Do not infer implicit inputs for intrinsics with !nocallback (PR #175230)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 10 00:32:37 PST 2026
================
@@ -0,0 +1,38 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --check-globals all --version 6
+; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -passes=amdgpu-attributor %s | FileCheck %s
+
+; Trap-like intrinsics such as llvm.trap and llvm.debugtrap do not have the
+; nocallback attribute, so the AMDGPU attributor used to conservatively drop
+; all implicitly-known inputs and AGPR allocation information. Make sure we
+; still infer that no implicit inputs are required and that the AGPR allocation
+; stays at zero.
----------------
arsenm wrote:
Something else has to be going on here, because the report was that a test was "broken". Treating traps overly more conservatively than necessary should not be able to break anything
https://github.com/llvm/llvm-project/pull/175230
More information about the llvm-commits
mailing list