We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ce8af commit 527628eCopy full SHA for 527628e
src/hotspot/share/opto/phaseX.cpp
@@ -1552,6 +1552,18 @@ void PhaseIterGVN::add_users_to_worklist( Node *n ) {
1552
}
1553
1554
if (use_op == Op_CmpI) {
1555
+ // Put If on worklist to enable fold_compares optimization (see IfNode::cmpi_folds)
1556
+ if (use->outcnt() > 0) {
1557
+ for (uint i = 0; i < use->outcnt(); i++) {
1558
+ Node* bol = use->raw_out(i);
1559
+ if (bol->outcnt() > 0) {
1560
+ Node* iff = bol->raw_out(0);
1561
+ if (iff->Opcode() == Op_If && iff->outcnt() == 2) {
1562
+ add_users_to_worklist0(bol);
1563
+ }
1564
1565
1566
1567
Node* phi = countedloop_phi_from_cmp((CmpINode*)use, n);
1568
if (phi != NULL) {
1569
// If an opaque node feeds into the limit condition of a
0 commit comments