Revert r324557, "gold-plugin: Do not set codegen opt level based on LTO opt level."
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 6 Apr 2018 21:14:33 +0000 (21:14 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 6 Apr 2018 21:14:33 +0000 (21:14 +0000)
commit4564ed1430774e84b49adaee633dbf1699104c76
tree9ffc11d89510054c8abce14e7429e403305bc5cd
parent431d8c39ba741e01a44a10099324995310af5969
Revert r324557, "gold-plugin: Do not set codegen opt level based on LTO opt level."

It was reported that this change measurably regressed -plugin-opt=O3
performance.

There is an ongoing discussion on llvm-dev about the correct way to
set the CG opt level, see thread "[llvm-dev] [RFC] Adding function
attributes to represent codegen optimization level".

llvm-svn: 329458
llvm/tools/gold/gold-plugin.cpp