@@ -465,19 +465,16 @@ class BinOpFrag<dag res> : PatFrag<(ops node:$LHS, node:$RHS), res>;
465
465
class UnOpFrag <dag res> : PatFrag<(ops node:$Src), res>;
466
466
467
467
// An 'and' node with a single use.
468
- def and_su : PatFrag<(ops node:$lhs, node:$rhs), (and node:$lhs, node:$rhs), [{
469
- return N->hasOneUse();
470
- }]>;
468
+ let HasOneUse = 1 in
469
+ def and_su : PatFrag<(ops node:$lhs, node:$rhs), (and node:$lhs, node:$rhs)>;
471
470
472
471
// An 'xor' node with a single use.
473
- def xor_su : PatFrag<(ops node:$lhs, node:$rhs), (xor node:$lhs, node:$rhs), [{
474
- return N->hasOneUse();
475
- }]>;
472
+ let HasOneUse = 1 in
473
+ def xor_su : PatFrag<(ops node:$lhs, node:$rhs), (xor node:$lhs, node:$rhs)>;
476
474
477
475
// An 'fmul' node with a single use.
478
- def fmul_su : PatFrag<(ops node:$lhs, node:$rhs), (fmul node:$lhs, node:$rhs),[{
479
- return N->hasOneUse();
480
- }]>;
476
+ let HasOneUse = 1 in
477
+ def fmul_su : PatFrag<(ops node:$lhs, node:$rhs), (fmul node:$lhs, node:$rhs)>;
481
478
482
479
// An 'fadd' node which checks for single non-hazardous use.
483
480
def fadd_mlx : PatFrag<(ops node:$lhs, node:$rhs),(fadd node:$lhs, node:$rhs),[{
0 commit comments