diff options
author | Fangrui Song <i@maskray.me> | 2024-01-17 10:46:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 10:46:34 -0800 |
commit | 0c6dc80531ed332e346934019095ad9518f465f3 (patch) | |
tree | d7da41b03b35f61f44eb42a861a756bd218914f6 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | bd5d41a3401f2dc31a82bb04deb0f47fd768a270 (diff) | |
download | llvm-0c6dc80531ed332e346934019095ad9518f465f3.zip llvm-0c6dc80531ed332e346934019095ad9518f465f3.tar.gz llvm-0c6dc80531ed332e346934019095ad9518f465f3.tar.bz2 |
BalancedPartitioning: minor updates (#77568)
When LargestTraceSize is a power of two, createBPFunctionNodes does not
allocate a group ID for Trace[LargestTraceSize-1] (as N is off by 1).
Fix
this and change floor+log2 to Log2_64.
BalancedPartitioning::bisect can use unstable sort because `Nodes`
contains distinct `InputOrderIndex`s.
BalancedPartitioning::runIterations: use one DenseMap and simplify the
node renumbering code.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions