[GVNHoist] Enable aggressive hoisting when optimizing for code-size
authorAditya Kumar <hiraditya@msn.com>
Tue, 29 Nov 2016 14:34:01 +0000 (14:34 +0000)
committerAditya Kumar <hiraditya@msn.com>
Tue, 29 Nov 2016 14:34:01 +0000 (14:34 +0000)
commit07cb3048262b8219ee59f876f1470014bc8aa41f
tree435f57c04817019636ca841e2c543a82f17a568b
parent35c47c494d58af1ed41934f49ea40484238f73eb
[GVNHoist] Enable aggressive hoisting when optimizing for code-size

Enable scalar hoisting at -Oz as it is safe to hoist scalars to a place
where they are partially needed.

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

llvm-svn: 288141
llvm/lib/Transforms/Scalar/GVNHoist.cpp