[PATCH] D99773: [InstCombine] when calling conventions are compatible, don't convert the call to undef idiom
Yuanfang Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 1 15:19:18 PDT 2021
ychen created this revision.
ychen added reviewers: samparker, spatel, nikic.
Herald added subscribers: hiraditya, kristof.beyls.
ychen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
D24453 <https://reviews.llvm.org/D24453> enabled libcalls simplication for ARM PCS. This may cause
caller/callee calling conventions mismatch in some situations such as
LTO. This patch makes instcombine aware that the compatible calling
conventions differences are benign (not emitting undef idom).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99773
Files:
llvm/include/llvm/Analysis/TargetLibraryInfo.h
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/call-callconv-mismatch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99773.334836.patch
Type: text/x-patch
Size: 7133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/a94c7c64/attachment.bin>
More information about the llvm-commits
mailing list