[PATCH] D29836: Add new pass LazyMachineBlockFrequencyInfo

Adam Nemet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 10:41:39 PST 2017


anemet created this revision.
Herald added subscribers: fhahn, mgorny.

And use it in MachineOptimizationRemarkEmitter.  A test will follow on top of
Justin's changes to enable MachineORE in AsmPrinter.

The approach is similar to the IR-level pass.  It's a bit simpler because BPI
is immutable at the Machine level so we don't need to make that lazy.

Because of this a new function mapping is introduced (calculateBPI) at the
IR-agnostic LazyBlockFrequencyInfo class.  This function calculates and
extracts BPI from the pass.  For Machine-level, this is the identity function


https://reviews.llvm.org/D29836

Files:
  include/llvm/Analysis/LazyBlockFrequencyInfo.h
  include/llvm/CodeGen/LazyMachineBlockFrequencyInfo.h
  include/llvm/CodeGen/MachineBlockFrequencyInfo.h
  include/llvm/InitializePasses.h
  lib/Analysis/LazyBlockFrequencyInfo.cpp
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/LazyMachineBlockFrequencyInfo.cpp
  lib/CodeGen/MachineBlockFrequencyInfo.cpp
  lib/CodeGen/MachineOptimizationRemarkEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29836.88016.patch
Type: text/x-patch
Size: 14237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170210/9c386de6/attachment.bin>


More information about the llvm-commits mailing list