[llvm] [Loads] Respect UseDerefAtPointSemantics in isDerefAndAlignedPointer. (PR #123196)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 08:22:59 PST 2025
================
@@ -168,7 +170,7 @@ static bool isDereferenceableAndAlignedPointer(
Size, DL, CtxI, AC, DT, TLI,
Visited, MaxDepth);
- if (CtxI) {
+ if (CtxI && (!UseDerefAtPointSemantics || !V->canBeFreed())) {
----------------
fhahn wrote:
My plan was first making things correct with the flag, then change the behavior for the attribute in assumes + langref change separately.
I can also pull it in here, although I still need to inspect the other uses of dereferenceable assumptions.
https://github.com/llvm/llvm-project/pull/123196
More information about the llvm-commits
mailing list