akadutta wrote: @arsenm previous comment updated with more explanation, and new LIT test (llvm/test/CodeGen/AMDGPU/amdgpu-attributor-trap-leaf.ll) was already added. LMK what you think. Thanks. https://github.com/llvm/llvm-project/pull/175230