[llvm] [AMDGPU] Preserve call info when lowering SI_CALL_ISEL (PR #192192)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 23:41:40 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: StevenYangCC
<details>
<summary>Changes</summary>
Keep additional call metadata attached when the custom inserter rewrites SI_CALL_ISEL into SI_CALL so later analyses still see the original direct-call information.
---
Full diff: https://github.com/llvm/llvm-project/pull/192192.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/SIISelLowering.cpp (+2)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 6750dfcbaac62..b37950e32ffb3 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -6847,6 +6847,8 @@ SITargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
MIB.add(MO);
MIB.cloneMemRefs(MI);
+ if (MI.shouldUpdateAdditionalCallInfo())
+ MF->moveAdditionalCallInfo(&MI, MIB.getInstr());
MI.eraseFromParent();
return BB;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/192192
More information about the llvm-commits
mailing list