[InlineFunction] Only replace call if there are VarArgs to forward.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 6 Dec 2017 19:47:24 +0000 (19:47 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 6 Dec 2017 19:47:24 +0000 (19:47 +0000)
commit115d99162c23ad85811efc44d2b743ec4283d0d6
tree7cebd2ba602aeaad82e295b618cc8adf74c39b83
parent3e069f57248f3c72d1c82e3005e8d21961b283d1
[InlineFunction] Only replace call if there are VarArgs to forward.

Summary:
There is no need to replace the original call instruction if no
 VarArgs need to be forwarded.

Reviewers: davide, rnk, majnemer, efriedma

Reviewed By: efriedma

Subscribers: eraman, llvm-commits

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

llvm-svn: 319947
llvm/lib/Transforms/Utils/InlineFunction.cpp