[maglev] Don't merge phi taggings across a resumable loop header [v8/v8 : main]

0 views
Skip to first unread message

Victor Gomes (Gerrit)

unread,
Jul 24, 2026, 7:47:40 AM (21 hours ago) Jul 24
to Darius Mercadier, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Darius Mercadier

Victor Gomes voted and added 1 comment

Votes added by Victor Gomes

Auto-Submit+1
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Victor Gomes . resolved

PTAL!

Open in Gerrit

Related details

Attention is currently required from:
  • Darius Mercadier
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
Gerrit-Change-Number: 8138206
Gerrit-PatchSet: 3
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Darius Mercadier <dmerc...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Darius Mercadier <dmerc...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Jul 2026 11:47:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Darius Mercadier (Gerrit)

unread,
Jul 24, 2026, 8:20:22 AM (21 hours ago) Jul 24
to Victor Gomes, v8-s...@luci-project-accounts.iam.gserviceaccount.com, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Victor Gomes

Darius Mercadier added 1 comment

File src/maglev/maglev-phi-representation-selector.cc
Line 1810, Patchset 3 (Latest): if (omitted_backedge && new_block->state()->is_resumable_loop()) {
Darius Mercadier . unresolved

Just `new_block->state()->is_resumable_loop()` should work, no? (and revert the rest of the change)

Open in Gerrit

Related details

Attention is currently required from:
  • Victor Gomes
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
    Gerrit-Change-Number: 8138206
    Gerrit-PatchSet: 3
    Gerrit-Owner: Victor Gomes <victo...@chromium.org>
    Gerrit-Reviewer: Darius Mercadier <dmerc...@chromium.org>
    Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
    Gerrit-Attention: Victor Gomes <victo...@chromium.org>
    Gerrit-Comment-Date: Fri, 24 Jul 2026 12:20:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Victor Gomes (Gerrit)

    unread,
    Jul 24, 2026, 8:31:35 AM (20 hours ago) Jul 24
    to v8-s...@luci-project-accounts.iam.gserviceaccount.com, Darius Mercadier, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
    Attention needed from Darius Mercadier

    Victor Gomes voted and added 3 comments

    Votes added by Victor Gomes

    Auto-Submit+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 3:
    Victor Gomes . resolved

    Done, reverted the rest.

    Confirmed it's equivalent: is_resumable_loop() already implies is_loop(), and I ran mjsunit with a temporary DCHECK_EQ(omitted_backedge, new_block->is_loop()) here, which held over 8848 tests — so the extra condition was indeed redundant.

    File-level comment, Patchset 4 (Latest):
    Victor Gomes . resolved

    PTALA!

    File src/maglev/maglev-phi-representation-selector.cc
    Line 1810, Patchset 3: if (omitted_backedge && new_block->state()->is_resumable_loop()) {
    Darius Mercadier . resolved

    Just `new_block->state()->is_resumable_loop()` should work, no? (and revert the rest of the change)

    Victor Gomes

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Darius Mercadier
    Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
      Gerrit-Change-Number: 8138206
      Gerrit-PatchSet: 4
      Gerrit-Owner: Victor Gomes <victo...@chromium.org>
      Gerrit-Reviewer: Darius Mercadier <dmerc...@chromium.org>
      Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
      Gerrit-Attention: Darius Mercadier <dmerc...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 12:31:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Darius Mercadier <dmerc...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Darius Mercadier (Gerrit)

      unread,
      Jul 24, 2026, 8:34:47 AM (20 hours ago) Jul 24
      to Victor Gomes, v8-s...@luci-project-accounts.iam.gserviceaccount.com, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
      Attention needed from Victor Gomes

      Darius Mercadier voted and added 1 comment

      Votes added by Darius Mercadier

      Code-Review+1
      Commit-Queue+2

      1 comment

      Patchset-level comments
      File-level comment, Patchset 4 (Latest):
      Darius Mercadier . resolved

      lgtm

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Victor Gomes
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
      Gerrit-Change-Number: 8138206
      Gerrit-PatchSet: 4
      Gerrit-Owner: Victor Gomes <victo...@chromium.org>
      Gerrit-Reviewer: Darius Mercadier <dmerc...@chromium.org>
      Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
      Gerrit-Attention: Victor Gomes <victo...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 12:34:43 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      v8-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

      unread,
      Jul 24, 2026, 9:14:14 AM (20 hours ago) Jul 24
      to Victor Gomes, Darius Mercadier, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org

      v8-s...@luci-project-accounts.iam.gserviceaccount.com submitted the change

      Change information

      Commit message:
      [maglev] Don't merge phi taggings across a resumable loop header

      The phi-untagging snapshot table closes a loop-header merge phi by
      making it its own backedge input, which assumes the header dominates its
      backedge predecessor. A resumable loop is entered through the backedge
      when the generator resumes, so the self-reference does not dominate;
      report no tagging there instead and let it be recreated where needed.
      Fixed: 537951967
      Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
      Commit-Queue: Darius Mercadier <dmerc...@chromium.org>
      Reviewed-by: Darius Mercadier <dmerc...@chromium.org>
      Auto-Submit: Victor Gomes <victo...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#108864}
      Files:
      • M src/maglev/maglev-phi-representation-selector.cc
      • A test/mjsunit/turbolev/regress-537951967.js
      Change size: S
      Delta: 2 files changed, 29 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Darius Mercadier
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I0c4d3c7601468c2db05ee822cf37a72f302db4fb
      Gerrit-Change-Number: 8138206
      Gerrit-PatchSet: 5
      Gerrit-Owner: Victor Gomes <victo...@chromium.org>
      Gerrit-Reviewer: Darius Mercadier <dmerc...@chromium.org>
      Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages