[llvm] [AMDGPU] Don't create mulhi_24 in CGP (PR #72983)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 05:12:48 PST 2023


================
@@ -870,8 +870,8 @@ class mul24_64_Pat<SDPatternOperator Op, Instruction InstLo, Instruction InstHi>
     (InstHi $src0, $src1), sub1)
 >;
 
-def : mul24_64_Pat<AMDGPUmul_i24, V_MUL_I32_I24_e32, V_MUL_HI_I32_I24_e32>;
-def : mul24_64_Pat<AMDGPUmul_u24, V_MUL_U32_U24_e32, V_MUL_HI_U32_U24_e32>;
+def : mul24_64_Pat<AMDGPUmul_i24, V_MUL_I32_I24_e64, V_MUL_HI_I32_I24_e32>;
+def : mul24_64_Pat<AMDGPUmul_u24, V_MUL_U32_U24_e64, V_MUL_HI_U32_U24_e32>;
----------------
arsenm wrote:

The hi part should also be _e64 

https://github.com/llvm/llvm-project/pull/72983


More information about the llvm-commits mailing list