[llvm] [AMDGPU] Baseline gfx1250 speed model. (PR #145217)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 22 01:00:34 PDT 2025
================
@@ -455,3 +456,35 @@ def : HWWriteRes<WriteBarrier, [HWBranch], 2000>;
def : InstRW<[WriteCopy], (instrs COPY)>;
} // End SchedModel = GFX12SpeedModel
+
+multiclass GFX125xCommonWriteRes {
+
+def : HWWriteRes<Write32Bit, [HWVALU, HWRC], 5>;
+def : HWWriteRes<WriteFloatCvt, [HWVALU, HWRC], 5>;
+def : HWWriteRes<WriteTrans32, [HWTransVALU, HWRC], 7>;
+def : HWWriteRes<WriteQuarterRate32, [HWVALU, HWRC], 6>;
+def : HWWriteRes<WriteFloatFMA, [HWVALU, HWRC], 5>;
+def : HWWriteRes<WritePseudoScalarTrans, [HWVALU, HWRC], 8>;
----------------
rampitec wrote:
According to the spec it uses VALU pipeline. I suspect it uses both, but that is really what is written. Then it is of course inherited from the gfx12 baseline.
https://github.com/llvm/llvm-project/pull/145217
More information about the llvm-commits
mailing list