[llvm-branch-commits] [llvm] [AMDGPU][GlobalISel] Add COPY_SCC_VCC combine for VCC-SGPR-VGPR pattern (PR #179352)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 20 01:14:31 PST 2026


================
@@ -101,6 +101,14 @@ def fmed3_intrinsic_to_clamp : GICombineRule<
          [{ return matchFPMed3ToClamp(*${fmed3}, ${matchinfo}); }]),
   (apply [{ applyClamp(*${fmed3}, ${matchinfo}); }])>;
 
+def copy_scc_vcc_matchdata : GIDefMatchData<"CopySccVccMatchInfo">;
+
+def copy_scc_vcc : GICombineRule<
+  (defs root:$copy, copy_scc_vcc_matchdata:$matchinfo),
+  (match (wip_match_opcode COPY):$copy,
----------------
arsenm wrote:

wip_match_opcode is deprecated, can you keep this in tablegen 

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


More information about the llvm-branch-commits mailing list