[llvm] [LLVM] Refine MemoryEffect handling for target-specific intrinsics (PR #155590)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 3 08:14:16 PST 2026


CarolineConcatto wrote:

Hello @nikic,
So I've moved the checks for the Target Locations to Alias Analysis, but I dont see the performance improvement I was expecting.
Question is it correct to replace **isModOrRefSet** by **isModSet** for the Calls in _instructionClobbersQuery_ like it is done in the other cases?
Something like this:

```
+++ b/llvm/lib/Analysis/MemorySSA.cpp
@@ -312,7 +312,7 @@ instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc,
   if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) {
     ModRefInfo I = AA.getModRefInfo(DefInst, CB);
-    return isModOrRefSet(I);
+    return isModSet(I);
   }
```
In this case I can see performance improvement.

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


More information about the llvm-commits mailing list