Lines Matching defs:Leaves
2093 LeafPrioQueue Leaves(NOpcode);
2165 Leaves.push(WeightedLeaf(Child, Weight, InsertionOrder++));
2176 Leaves.push(WeightedLeaf(Child, Weight, InsertionOrder++));
2228 Leaves.push(WeightedLeaf(New, Weight, Mul1.InsertionOrder));
2232 Leaves.push(Mul1);
2234 Leaves.push(Mul2);
2242 if (NOpcode == ISD::ADD && GA.Value.getNode() && Leaves.hasConst() &&
2246 ConstantSDNode *Offset = cast<ConstantSDNode>(Leaves.top().Value);
2260 GA.Weight += Leaves.top().Weight;
2265 Leaves.pop(); // Remove the offset constant from the queue
2279 WeightedLeaf SHL = Leaves.findSHL(31);
2291 Leaves.push(GA);
2295 if (TopLevel && !CanFactorize && Leaves.hasConst()) {
2297 Leaves.pushToBottom(Leaves.pop());
2304 while (Leaves.size() > 1) {
2305 WeightedLeaf L0 = Leaves.pop();
2309 WeightedLeaf L1 = Leaves.findMULbyConst();
2311 L1 = Leaves.pop();
2355 Leaves.push(WeightedLeaf(NewNode, Weight, L0.InsertionOrder));
2362 assert(Leaves.size() == 1);
2363 SDValue NewRoot = Leaves.top().Value;
2394 RootWeights[NewRoot.getNode()] = Leaves.top().Weight;