[all-commits] [llvm/llvm-project] 87b8d9: [AMDGPU] Fix GCNUpwardRPTracker. (#71186)
Valery Pykhtin via All-commits
all-commits at lists.llvm.org
Fri Nov 10 04:44:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 87b8d9437102c37075b868bcdaab4cbbdceeb37e
https://github.com/llvm/llvm-project/commit/87b8d9437102c37075b868bcdaab4cbbdceeb37e
Author: Valery Pykhtin <valery.pykhtin at gmail.com>
Date: 2023-11-10 (Fri, 10 Nov 2023)
Changed paths:
M llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp
M llvm/lib/Target/AMDGPU/GCNRegPressure.cpp
M llvm/lib/Target/AMDGPU/GCNRegPressure.h
M llvm/test/CodeGen/AMDGPU/regpressure_printer.mir
Log Message:
-----------
[AMDGPU] Fix GCNUpwardRPTracker. (#71186)
Fixed:
1. Maximum register pressure calculation at the instruction level.
Previously max RP included both def and use of registers of an
instruction. Now maximum RP includes _uses_ and _early-clobber defs_.
2. Uses were incorrectly tracked and this resulted in a mismatch of
live-in set reported by LiveIntervals and tracked live reg set when the
beginning of the block is reached.
Interface has changed, moveMaxPressure becomes deprecated and
getMaxPressure, resetMaxPressure functions are added. reset function
seem now more consistent.
More information about the All-commits
mailing list