[llvm] [FlattenCFG] Fix an Imprecise Usage of AA (PR #128117)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 14 05:52:48 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);
----------------
nikic wrote:
To clarify this bit: We should have a method taking AAQI, and another helper that uses SimplieAAQueryInfo and call the main method.
https://github.com/llvm/llvm-project/pull/128117
More information about the llvm-commits
mailing list