[PATCH] D122431: Basic support for posix_memalign / __builtin_object_size interaction
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 13:42:58 PDT 2022
serge-sans-paille created this revision.
serge-sans-paille added reviewers: nikic, durin42.
Herald added a subscriber: hiraditya.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
It actually implements support for seeing through loads, using alias analysis to
refine the result.
This is rather limited, but I didn't want to rely on more than available analysis at that point (to be gentle with compilation time), and it does seem to catch some common scenario, as showcased by the included tests.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122431
Files:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/builtin-object-size-posix-memalign.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122431.418033.patch
Type: text/x-patch
Size: 11338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220324/5a597ebf/attachment.bin>
More information about the llvm-commits
mailing list