DAGCombiner: fix -Wunused-private-field. NFC
authorFangrui Song <i@maskray.me>
Wed, 8 Feb 2023 06:33:56 +0000 (22:33 -0800)
committerFangrui Song <i@maskray.me>
Wed, 8 Feb 2023 06:33:56 +0000 (22:33 -0800)
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index d1d6f4a..b6e0578 100644 (file)
@@ -867,13 +867,12 @@ public:
 
 class VPMatchContext {
   SelectionDAG &DAG;
-  SDNode *Root;
   SDValue RootMaskOp;
   SDValue RootVectorLenOp;
 
 public:
   VPMatchContext(SelectionDAG &DAG, SDNode *Root)
-      : DAG(DAG), Root(Root), RootMaskOp(), RootVectorLenOp() {
+      : DAG(DAG), RootMaskOp(), RootVectorLenOp() {
     assert(Root->isVPOpcode());
     if (auto RootMaskPos = ISD::getVPMaskIdx(Root->getOpcode()))
       RootMaskOp = Root->getOperand(*RootMaskPos);