OSDN Git Service

[MergeFunc] Allow merging identical vararg functions using aliases
authorVedant Kumar <vsk@apple.com>
Sat, 19 Jan 2019 02:46:22 +0000 (02:46 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 19 Jan 2019 02:46:22 +0000 (02:46 +0000)
commit341781f38dda6a30314f3c5e5290bffe2fb98f7a
tree3711e101b99c994eda5472b8eec260543a83f8fa
parent3dfba4afc6d9dfa896e7de4640c88bc9c9180d7c
[MergeFunc] Allow merging identical vararg functions using aliases

Thanks to Nikita Popov for pointing out this missed case.

This is a follow-up to r351411, which disabled function merging for
vararg functions outright due to a miscompile (see llvm.org/PR40345).

Differential Revision: https://reviews.llvm.org/D56865

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
test/Transforms/MergeFunc/va_arg.ll