@@ -309,9 +309,8 @@ def shift_of_shifted_logic_chain : GICombineRule<
309
309
[{ return Helper.matchShiftOfShiftedLogic(*${d}, ${matchinfo}); }]),
310
310
(apply [{ Helper.applyShiftOfShiftedLogic(*${d}, ${matchinfo}); }])>;
311
311
312
- def mul_to_shl_matchdata : GIDefMatchData<"unsigned">;
313
312
def mul_to_shl : GICombineRule<
314
- (defs root:$d, mul_to_shl_matchdata :$matchinfo),
313
+ (defs root:$d, unsigned_matchinfo :$matchinfo),
315
314
(match (G_MUL $d, $op1, $op2):$mi,
316
315
[{ return Helper.matchCombineMulToShl(*${mi}, ${matchinfo}); }]),
317
316
(apply [{ Helper.applyCombineMulToShl(*${mi}, ${matchinfo}); }])>;
@@ -430,9 +429,8 @@ def select_undef_cmp: GICombineRule<
430
429
431
430
// Fold (true ? x : y) -> x
432
431
// Fold (false ? x : y) -> y
433
- def select_constant_cmp_matchdata : GIDefMatchData<"unsigned">;
434
432
def select_constant_cmp: GICombineRule<
435
- (defs root:$root, select_constant_cmp_matchdata :$matchinfo),
433
+ (defs root:$root, unsigned_matchinfo :$matchinfo),
436
434
(match (wip_match_opcode G_SELECT):$root,
437
435
[{ return Helper.matchConstantSelectCmp(*${root}, ${matchinfo}); }]),
438
436
(apply [{ Helper.replaceSingleDefInstWithOperand(*${root}, ${matchinfo}); }])
@@ -651,9 +649,8 @@ def add_p2i_to_ptradd : GICombineRule<
651
649
>;
652
650
653
651
// Fold (ptr_add (int2ptr C1), C2) -> C1 + C2
654
- def const_ptradd_to_i2p_matchinfo : GIDefMatchData<"APInt">;
655
652
def const_ptradd_to_i2p: GICombineRule<
656
- (defs root:$root, const_ptradd_to_i2p_matchinfo :$info),
653
+ (defs root:$root, apint_matchinfo :$info),
657
654
(match (wip_match_opcode G_PTR_ADD):$root,
658
655
[{ return Helper.matchCombineConstPtrAddToI2P(*${root}, ${info}); }]),
659
656
(apply [{ Helper.applyCombineConstPtrAddToI2P(*${root}, ${info}); }])
@@ -721,9 +718,8 @@ def anyext_trunc_fold: GICombineRule <
721
718
722
719
// Fold (zext (trunc x)) -> x if the source type is same as the destination type
723
720
// and truncated bits are known to be zero.
724
- def zext_trunc_fold_matchinfo : GIDefMatchData<"Register">;
725
721
def zext_trunc_fold: GICombineRule <
726
- (defs root:$root, zext_trunc_fold_matchinfo :$matchinfo),
722
+ (defs root:$root, register_matchinfo :$matchinfo),
727
723
(match (wip_match_opcode G_ZEXT):$root,
728
724
[{ return Helper.matchCombineZextTrunc(*${root}, ${matchinfo}); }]),
729
725
(apply [{ Helper.replaceSingleDefInstWithReg(*${root}, ${matchinfo}); }])
0 commit comments