HomePhabricator

New OptimizationRemarkEmitter pass for MIR

Description

New OptimizationRemarkEmitter pass for MIR

This allows MIR passes to emit optimization remarks with the same level
of functionality that is available to IR passes.

It also hooks up the greedy register allocator to report spills. This
allows for interesting use cases like increasing interleaving on a loop
until spilling of registers is observed.

I still need to experiment whether reporting every spill scales but this
demonstrates for now that the functionality works from llc
using -pass-remarks*=<pass>.

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

Details

Committed
anemetJan 25 2017, 3:20 PM
Differential Revision
D29004: New OptimizationRemarkEmitter pass for MIR
Parents
rL293109: [OptDiag] Split code region out of DiagnosticInfoOptimizationBase
Branches
Unknown
Tags
Unknown