[llvm] [FlattenCFG] Fix an Imprecise Usage of AA (PR #128117)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 12:33:44 PDT 2025


================
@@ -369,6 +369,22 @@ ModRefInfo AAResults::getModRefInfo(const CallBase *Call1,
   return Result;
 }
 
+// Check whether two instructions may read or write the same memory location.
+ModRefInfo AAResults::getModRefInfo(const Instruction *I1,
+                                    const Instruction *I2) {
+  SimpleAAQueryInfo AAQIP(*this);
----------------
Chengjunp wrote:

I have updated the methods. Let me know whether it is you expected.

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


More information about the llvm-commits mailing list