[llvm] [DSE] Fixes bug caused by skipped read clobbers (PR #83181)

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 13:03:43 PST 2024


================
@@ -1274,7 +1274,8 @@ struct DSEState {
       if (CB->onlyAccessesInaccessibleMemory())
         return false;
 
-    return isRefSet(BatchAA.getModRefInfo(UseInst, DefLoc));
+    AAQueryInfo TmpAAQI(AA, &EI);
----------------
alinas wrote:

This shouldn't be necessary. `AA.getModRefInfo(UseInst, DefLoc)` should work.

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


More information about the llvm-commits mailing list