[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:52 PDT 2026
================
@@ -307,7 +307,7 @@ Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) {
// If we can unconditionally load from this address, replace with a
// load/select idiom. TODO: use DT for context sensitive query
if (isDereferenceablePointer(LoadPtr, II.getType(),
- II.getDataLayout(), &II, &AC)) {
+ SQ.getWithInstruction(&II))) {
----------------
nikic wrote:
True. I dropped the TODO and the NFC from this patch. I think it's probably not worth bothering to retain the DT=nullptr here?
https://github.com/llvm/llvm-project/pull/202553
More information about the llvm-commits
mailing list