[llvm] [CGP] Undo constant propagation of pointers across calls (PR #102926)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 12:19:59 PDT 2024


================
@@ -2686,6 +2686,47 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, ModifyDT &ModifiedDT) {
     return true;
   }
 
+  // SCCP may have propagated C++ static variables across calls. If this happens
----------------
nikic wrote:

This doesn't really seem specific to C++ static variables.

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


More information about the llvm-commits mailing list