[llvm] Hasoneuse uses (PR #92534)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 05:59:28 PDT 2024
================
@@ -169,29 +169,22 @@ def brtarget : Operand<OtherVT>;
class HasOneUseUnaryOp<SDPatternOperator op> : PatFrag<
(ops node:$src0),
(op $src0),
- [{ return N->hasOneUse(); }]> {
-
- let GISelPredicateCode = [{
- return MRI.hasOneNonDBGUse(MI.getOperand(0).getReg());
- }];
+ [{ return true; }]> {
----------------
Pierre-vh wrote:
Can't we just remove the argument entirely?
https://github.com/llvm/llvm-project/pull/92534
More information about the llvm-commits
mailing list