reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2197 assert(NodeHeights.count(NewRoot)); 2198 int Height = NodeHeights[NewRoot]; 2201 if (NewRoot.getOpcode() == ISD::MUL) { 2202 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(NewRoot.getOperand(1)); 2204 EVT VT = NewRoot.getValueType(); 2205 SDValue V0 = NewRoot.getOperand(0); 2206 NewRoot = CurDAG->getNode( 2207 ISD::SHL, SDLoc(NewRoot), VT, V0, 2209 V1C->getAPIntValue().logBase2(), SDLoc(NewRoot), 2214 if (N != NewRoot.getNode()) { 2216 LLVM_DEBUG(NewRoot.dump()); 2219 CurDAG->ReplaceAllUsesWith(N, NewRoot.getNode()); 2226 RootWeights[NewRoot.getNode()] = Leaves.top().Weight; 2227 RootHeights[NewRoot.getNode()] = Height; 2229 return NewRoot;