OSDN Git Service

Add size remarks to MachineFunctionPass
authorJessica Paquette <jpaquette@apple.com>
Mon, 10 Sep 2018 22:24:10 +0000 (22:24 +0000)
committerJessica Paquette <jpaquette@apple.com>
Mon, 10 Sep 2018 22:24:10 +0000 (22:24 +0000)
commit3ec8365490fd5335bedd7af21c2bf95fbc0d58d7
treef24a4417c984b4bd79a9c46293960bca5eb670f7
parent5a3695dcfcd68eed44bc13fa323ce121b2141999
Add size remarks to MachineFunctionPass

This adds per-function size remarks to codegen, similar to what we have in the
IR layer as of r341588. This only impacts MachineFunctionPasses.

This does the same thing, but for `MachineInstr`s instead of just
`Instructions`. After this, when a `MachineFunctionPass` modifies the number of
`MachineInstr`s in the function it ran on, you'll get a remark.

To enable this, use the size-info analysis remark as before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341876 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/MachineFunctionPass.cpp
test/Other/machine-size-remarks.ll [new file with mode: 0644]