[llvm] [InstCombine] Add assumption to preserve deref info after sinking. (PR #120888)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 07:16:37 PST 2024


================
@@ -2676,6 +2676,8 @@ class IRBuilderBase {
   CallInst *CreateAlignmentAssumption(const DataLayout &DL, Value *PtrValue,
                                       Value *Alignment,
                                       Value *OffsetValue = nullptr);
+
+  CallInst *CreateDereferenceableAssumption(Value *PtrValue, unsigned Size);
----------------
dtcxzyw wrote:

`Attribute::getWithDereferenceableBytes` uses `uint64_t` for the size argument.


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


More information about the llvm-commits mailing list