[PATCH] D48404: Don't modify LibFuncs in LTO
Jacob Gravelle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 20 16:19:31 PDT 2018
jgravelle-google created this revision.
jgravelle-google added a reviewer: dschuff.
Herald added subscribers: steven_wu, aheejin, inglorion, sbc100, mehdi_amini.
When performing LTO, it's possible to modify function signatures to
simplify things. There are also LTO passes that make assumptions about
LibFunc signatures. When statically linking libc, LibFunc signatures can
be simplified, which can invalidate those assumptions. This patch adds
checks to the passes that modify signatures to exclude LibFuncs.
Repository:
rL LLVM
https://reviews.llvm.org/D48404
Files:
include/llvm/Transforms/IPO/DeadArgumentElimination.h
lib/Transforms/IPO/ArgumentPromotion.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/LTO/WebAssembly/libfunc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48404.152197.patch
Type: text/x-patch
Size: 7054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/27bc850c/attachment-0001.bin>
More information about the llvm-commits
mailing list