[llvm] [Loads] Respect UseDerefAtPointSemantics in isDerefAndAlignedPointer. (PR #123196)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 08:31:47 PST 2025
================
@@ -168,7 +170,7 @@ static bool isDereferenceableAndAlignedPointer(
Size, DL, CtxI, AC, DT, TLI,
Visited, MaxDepth);
- if (CtxI) {
+ if (CtxI && (!UseDerefAtPointSemantics || !V->canBeFreed())) {
----------------
nikic wrote:
Okay, that's fin by me.
https://github.com/llvm/llvm-project/pull/123196
More information about the llvm-commits
mailing list