Update src/hotspot/share/opto/loopnode.cpp

Co-authored-by: Roberto Castañeda Lozano <robcasloz@users.noreply.github.com>
This commit is contained in:
Roland Westrelin 2025-06-12 17:12:27 +02:00 committed by GitHub
parent a0d7442c27
commit 817a391b34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3023,7 +3023,7 @@ void OuterStripMinedLoopNode::handle_sunk_stores_at_expansion(PhaseIterGVN* igvn
// Found a chain of Stores that were sunk // Found a chain of Stores that were sunk
// Do we already have a memory Phi for that slice on the outer loop? If that is the case, that Phi was created // Do we already have a memory Phi for that slice on the outer loop? If that is the case, that Phi was created
// by cloning an inner loop Phi. The inner loop Phi should have mem, the memory state of the first Store out of // by cloning an inner loop Phi. The inner loop Phi should have mem, the memory state of the first Store out of
// the inner loop as input on the backedge. So does the outer loop Phi given it's a clone. // the inner loop, as input on the backedge. So does the outer loop Phi given it's a clone.
Node* phi = nullptr; Node* phi = nullptr;
for (DUIterator_Fast imax, i = mem->fast_outs(imax); i < imax; i++) { for (DUIterator_Fast imax, i = mem->fast_outs(imax); i < imax; i++) {
Node* u = mem->fast_out(i); Node* u = mem->fast_out(i);