[DAG] SimplifyMultipleUseDemandedBits - add default Depth = 0 argument.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 1 Feb 2022 12:33:17 +0000 (12:33 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 1 Feb 2022 12:34:38 +0000 (12:34 +0000)
Simplifies an upcoming change.

llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index e53da02..3861648 100644 (file)
@@ -3497,7 +3497,7 @@ public:
   SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
                                           const APInt &DemandedElts,
                                           SelectionDAG &DAG,
-                                          unsigned Depth) const;
+                                          unsigned Depth = 0) const;
 
   /// Helper wrapper around SimplifyMultipleUseDemandedBits, demanding all
   /// elements.
index 3eff266..d5998d1 100644 (file)
@@ -2449,7 +2449,7 @@ SDValue SelectionDAG::GetDemandedBits(SDValue V, const APInt &DemandedBits,
   switch (V.getOpcode()) {
   default:
     return TLI->SimplifyMultipleUseDemandedBits(V, DemandedBits, DemandedElts,
-                                                *this, 0);
+                                                *this);
   case ISD::Constant: {
     const APInt &CVal = cast<ConstantSDNode>(V)->getAPIntValue();
     APInt NewVal = CVal & DemandedBits;