[llvm] [GISEL][AArch64] Stop using wip_match_opcode for some opcodes (PR #106702)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 07:23:45 PDT 2024


================
@@ -13,14 +13,14 @@ include "llvm/Target/GlobalISel/Combine.td"
 
 def fconstant_to_constant : GICombineRule<
   (defs root:$root),
-  (match (wip_match_opcode G_FCONSTANT):$root,
+  (match (G_FCONSTANT $dst, $src):$root,
          [{ return matchFConstantToConstant(*${root}, MRI); }]),
   (apply [{ applyFConstantToConstant(*${root}); }])>;
 
 def icmp_redundant_trunc_matchdata : GIDefMatchData<"Register">;
----------------
madhur13490 wrote:

Isn't `$dst` and `$src` just names given to operands? If so, what change would it bring in the matching algorithm?

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


More information about the llvm-commits mailing list