[AlwaysInliner] Emit optimization remarks
authorArthur Eubanks <aeubanks@google.com>
Tue, 1 Sep 2020 22:55:05 +0000 (15:55 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 22 Sep 2020 05:09:28 +0000 (22:09 -0700)
commit3bf703fb6d55b23d29c792325a78cd3ead9ad07c
tree18bbf33825be5fdab0e3b10555990a107382843e
parent9b47525824df9be5ae23c39e7ce0d220d12f85e5
[AlwaysInliner] Emit optimization remarks

To match the normal inliner in preparation for https://reviews.llvm.org/D86988.

Also change a FIXME to an assert.

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D88067
llvm/lib/Transforms/IPO/AlwaysInliner.cpp
llvm/test/Transforms/Inline/optimization-remarks.ll