Files
clang-p2996/llvm/lib/CodeGen/MachineTraceMetrics.cpp
Anton Sidorenko 980aa8d740 [MachineTraceMetrics] Add local strategy
This strategy makes each trace local to the basic block. For in-order cores some
heuristics work better when we do local decisions. For example, MachineCombiner
may expect that instructions outside the current basic block do not lengthen
the critical path when we execute instructions in order or the core has a
small re-order buffer.

This patch only introduce the strategy, real use-case is added in the further
pathes.

Depends on D140539

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D140540
2023-02-15 15:53:14 +03:00

50 KiB