[all-commits] [llvm/llvm-project] 0f8183: [AMDGPU] Make temp vgpr selection stable in indire...
Stanislav Mekhanoshin via All-commits
all-commits at lists.llvm.org
Mon Jun 13 09:40:12 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f81830632c1496bd580aaf671c39c328a4dfca1
https://github.com/llvm/llvm-project/commit/0f81830632c1496bd580aaf671c39c328a4dfca1
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: 2022-06-13 (Mon, 13 Jun 2022)
Changed paths:
M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
M llvm/test/CodeGen/AMDGPU/accvgpr-copy.mir
M llvm/test/CodeGen/AMDGPU/agpr-copy-no-free-registers.ll
Log Message:
-----------
[AMDGPU] Make temp vgpr selection stable in indirectCopyToAGPR
This uses rotating reminder of division by 3 to select another
temp vgpr each next time in a sequence of several agpr copies.
Therefore, temp vgpr selection depends on the generated agpr
number. This number could change with any unrelated change to
the register definitions.
Stabilize the selection by using a real agpr number.
Differential Revision: https://reviews.llvm.org/D127524
More information about the All-commits
mailing list