Lines Matching refs:NewRoot
2213 SDValue NewRoot = Leaves.top().Value; in balanceSubTree() local
2215 assert(NodeHeights.count(NewRoot)); in balanceSubTree()
2216 int Height = NodeHeights[NewRoot]; in balanceSubTree()
2219 if (NewRoot.getOpcode() == ISD::MUL) { in balanceSubTree()
2220 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(NewRoot.getOperand(1)); in balanceSubTree()
2222 EVT VT = NewRoot.getValueType(); in balanceSubTree()
2223 SDValue V0 = NewRoot.getOperand(0); in balanceSubTree()
2224 NewRoot = CurDAG->getNode( in balanceSubTree()
2225 ISD::SHL, SDLoc(NewRoot), VT, V0, in balanceSubTree()
2227 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), in balanceSubTree()
2232 if (N != NewRoot.getNode()) { in balanceSubTree()
2234 LLVM_DEBUG(NewRoot.dump()); in balanceSubTree()
2237 CurDAG->ReplaceAllUsesWith(N, NewRoot.getNode()); in balanceSubTree()
2244 RootWeights[NewRoot.getNode()] = Leaves.top().Weight; in balanceSubTree()
2245 RootHeights[NewRoot.getNode()] = Height; in balanceSubTree()
2247 return NewRoot; in balanceSubTree()