[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)
commitb537b946b82f7e2c52ad16cf3fbff93345ee4993
tree7e5a7c7b578d85bf1a89453f8b781f19e05ff7c6
parentb755a2df5123a2b970733c43c9e65326b73d99c7
[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

llvm-svn: 351624
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/test/Transforms/MergeFunc/va_arg.ll