[GlobalMerge] Take into account minsize on Global users' parents.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 4 Jun 2015 20:39:23 +0000 (20:39 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 4 Jun 2015 20:39:23 +0000 (20:39 +0000)
commit0d9335eda79f2ece9cb4166186861ec3612544fe
treec47b59e7fb5619e817b99e25cfa62b6cbd4bdad6
parent3eb860ab87a8b5f63bacb0433f3de6b1aea66013
[GlobalMerge] Take into account minsize on Global users' parents.

Now that we can look at users, we can trivially do this: when we would
have otherwise disabled GlobalMerge (currently -O<3), we can just run
it for minsize functions, as it's usually a codesize win.

Differential Revision: http://reviews.llvm.org/D10054

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239087 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar.h
lib/CodeGen/GlobalMerge.cpp
lib/Target/AArch64/AArch64TargetMachine.cpp
lib/Target/ARM/ARMTargetMachine.cpp
test/CodeGen/AArch64/global-merge-ignore-single-use-minsize.ll [new file with mode: 0644]