[llvm] IPRA:Fix crash and verification failures for PLT calls (PR #196917)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 14 19:14:52 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()) {
----------------
vigbalu wrote:

@lenary 
these can be different, `isDSOLocal` is specific to preemptability at link and runtime, whereas `isDefinitionExact` is about the definition characteristics, such as the weak attribute.

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


More information about the llvm-commits mailing list