[llvm] [Loads] Migrate isDereferenceable APIs to SimplifyQuery (PR #202553)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 02:47:01 PDT 2026


================
@@ -460,8 +438,8 @@ bool llvm::isSafeToLoadUnconditionally(Value *V, Align Alignment, const APInt &S
                                        AssumptionCache *AC,
                                        const DominatorTree *DT,
                                        const TargetLibraryInfo *TLI) {
-  if (isDereferenceableAndAlignedPointer(V, Alignment, Size, DL, ScanFrom, AC,
-                                         DT, TLI)) {
+  if (isDereferenceableAndAlignedPointer(
+          V, Alignment, Size, SimplifyQuery(DL, TLI, DT, AC, ScanFrom, AC))) {
----------------
nikic wrote:

Oops, fixed. There are some boolean parameters afterwards, and pointer will silently coerce :(

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


More information about the llvm-commits mailing list