//------------------------------Ideal------------------------------------------ // Remove dead inputs
Node *RootNode::Ideal(PhaseGVN *phase, bool can_reshape) { bool modified = false; for( uint i = 1; i < req(); i++ ) { // For all inputs // Check for and remove dead inputs if( phase->type(in(i)) == Type::TOP ) {
del_req(i--); // Delete TOP inputs
modified = true;
}
}
// I used to do tail-splitting in the Ideal graph here, but it does not // work. The tail-splitting forces values live into the Return to be // ready at a point which dominates the split returns. This forces Stores // to be hoisted high. The "proper" fix would be to split Stores down // each path, but this makes the split unprofitable. If we want to do this // optimization, it needs to be done after allocation so we can count all // the instructions needing to be cloned in the cost metric.
// There used to be a spoof here for caffeine marks which completely // eliminated very simple self-recursion recursions, but it's not worth it. // Deep inlining of self-calls gets nearly all of the same benefits. // If we want to get the rest of the win later, we should pattern match // simple recursive call trees to closed-form solutions.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.