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

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 06:02:38 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:

@MaskRay , can you help us to conclude this ?
Should we modify `isDefinitionExact` to accommodate  `isDSOLocal` as @lenary suggests ?

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


More information about the llvm-commits mailing list