]> granicus.if.org Git - llvm/commit
Migrate SimplifyLibCalls to new OptimizationRemarkEmitter
authorAdam Nemet <anemet@apple.com>
Wed, 26 Jul 2017 19:03:18 +0000 (19:03 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 26 Jul 2017 19:03:18 +0000 (19:03 +0000)
commit7d3d44a14cc36c73cfd3e322a511ab8e2b462251
tree6b4dad0bbcd6c72cf1fcdeed027a6d4a0ed07836
parent69469a788bc7f53fcce13578bc9f30de081ea548
Migrate SimplifyLibCalls to new OptimizationRemarkEmitter

Summary:
This changes SimplifyLibCalls to use the new OptimizationRemarkEmitter
API.

In fact, as SimplifyLibCalls is only ever called via InstCombine,
(as far as I can tell) the OptimizationRemarkEmitter is added there,
and then passed through to SimplifyLibCalls later.

I have avoided changing any remark text.

This closes PR33787

Patch by Sam Elliott!

Reviewers: anemet, davide

Reviewed By: anemet

Subscribers: davide, mehdi_amini, eraman, fhahn, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309158 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/SimplifyLibCalls.h
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Other/new-pm-defaults.ll
test/Other/new-pm-lto-defaults.ll
test/Other/new-pm-thinlto-defaults.ll
test/Transforms/Util/libcalls-opt-remarks.ll [new file with mode: 0644]