Recommit "[LTO] Use lto::backend for code generation."
authorFlorian Hahn <flo@fhahn.com>
Sun, 14 Feb 2021 19:33:36 +0000 (19:33 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 15 Feb 2021 10:05:42 +0000 (10:05 +0000)
commitc70737ba1dea947350879a4f53a4a5513d6c9252
tree6bda50b7883ca70312eb3efd278c9fd4499cbf65
parent0b55ecce45d7cc79b614bcb91cd070ab257227fc
Recommit "[LTO] Use lto::backend for code generation."

This version of the patch includes a fix for the cfi failures.

(undoes the revert commit 7db390cc7738a9ba0ed7d4ca59ab6ea2e69c47e9)

It also undoes reverts of follow-up patches that also needed reverting
originally:

  * [LTO] Add option enable NewPM with LTOCodeGenerator.
    (undoes revert commit 0a17664b47c153aa26a0d31b4835f26375440ec6)

  * [LTOCodeGenerator] Use lto::Config for options (NFC)."
    (undoes revert commit b0a8e41cfff717ff067bf63412d6edb0280608cd)
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/test/LTO/X86/diagnostic-handler-remarks.ll
llvm/test/LTO/X86/disable-verify.ll
llvm/test/Other/X86/lto-hot-cold-split.ll
llvm/test/tools/lto/print-stats.ll
llvm/tools/llvm-lto/llvm-lto.cpp