[llvm] IPRA:Fix crash and verification failures for PLT calls (PR #196917)
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 18:15:39 PDT 2026
================
@@ -154,7 +154,8 @@ bool RegUsageInfoPropagation::run(MachineFunction &MF) {
};
if (const Function *F = findCalledFunction(M, MI)) {
- if (F->isDefinitionExact()) {
+ // The Function must not be preemptable.
+ if (F->isDefinitionExact() && F->isDSOLocal()) {
----------------
qcolombet wrote:
> There's probably opportunities to cleanup this logic, but I don't think that this function above needs to check isDSOLocal itself.
+1 on that
https://github.com/llvm/llvm-project/pull/196917
More information about the llvm-commits
mailing list