[PATCH] D107574: [GlobalOpt] [MemoryBuiltins] Update getMallocType with bitcast on stored pointer
Shimin Cui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 6 10:02:42 PDT 2021
scui updated this revision to Diff 364837.
scui added a comment.
Herald added a subscriber: ormris.
Rewrite getMallocType - only look at the bitcast feeding into the store (value or pointer) for malloc call, and no longer return nullptr.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107574/new/
https://reviews.llvm.org/D107574
Files:
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/malloc-promote-5.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107574.364837.patch
Type: text/x-patch
Size: 7126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210806/5d494e63/attachment.bin>
More information about the llvm-commits
mailing list