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

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 14:04:57 PST 2024


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

Is there a better way to call `getModeRefInfo()` and using `EI` for the query, without having to use the temporary `AAQueryInfo` ?

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


More information about the llvm-commits mailing list