Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Issue 1435543002: Subzero: Fix a bug in advanced phi lowering. (Closed)

Created:
5 years, 1 month ago by Jim Stichnoth
Modified:
5 years, 1 month ago
Reviewers:
Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Fix a bug in advanced phi lowering. When a temporary is introduced to break a cycle, we neglected to update the predecessor count for one of the operands, leading to a possible assertion failure. This problem isn't currently seen in master, but it arises when we enable register aliases, as in https://codereview.chromium.org/1427973003/ . No changes are seen in spec2k code generation as a result of this fix. A consistency check is added to help find future problems like this. Also, refactored iteration over the Phi descriptor array to use range-based for loops and avoid directly indexing the array. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=ea15bbe7cd6c569216ba9da3001e48ff8b4f192f

Patch Set 1 #

Patch Set 2 : Use the right form of emplace_back() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -88 lines) Patch
M src/IceCfgNode.cpp View 1 5 chunks +101 lines, -88 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Jim Stichnoth
5 years, 1 month ago (2015-11-09 18:17:24 UTC) #4
John
lgtm
5 years, 1 month ago (2015-11-09 19:14:06 UTC) #5
Jim Stichnoth
5 years, 1 month ago (2015-11-09 19:19:16 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
ea15bbe7cd6c569216ba9da3001e48ff8b4f192f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698