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

Issue 1351433002: Subzero: Validate phi instructions after CFG construction. (Closed)

Created:
5 years, 3 months ago by Jim Stichnoth
Modified:
5 years, 3 months ago
Reviewers:
Karl, ascull, 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: Validate phi instructions after CFG construction. It checks that each phi label corresponds to an incoming edge, and that each incoming edge has a corresponding phi label. It does not check that duplicate incoming edges get the same phi value. Performance impact is minimal (~0.2%) despite the O(N^2) implementation. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4304 R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=1aca23075ab7e2ddfd03c57782afa7c48c2d0354

Patch Set 1 #

Patch Set 2 : Add the test provenance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -0 lines) Patch
M src/IceCfg.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceCfgNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfgNode.cpp View 1 chunk +40 lines, -0 lines 0 comments Download
M src/IceTimerTree.def View 1 chunk +1 line, -0 lines 0 comments Download
A tests_lit/llvm2ice_tests/Input/phi-invalid.tbc View 1 chunk +55 lines, -0 lines 0 comments Download
A tests_lit/llvm2ice_tests/phi_invalid.test View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 3 months ago (2015-09-16 04:51:16 UTC) #2
Jim Stichnoth
Please hold off reviewing this. I'm doing a proper implementation instead of the O(N^2) algorithm.
5 years, 3 months ago (2015-09-16 15:35:57 UTC) #3
John
lgtm
5 years, 3 months ago (2015-09-16 15:36:00 UTC) #4
Jim Stichnoth
5 years, 3 months ago (2015-09-16 18:25:27 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
1aca23075ab7e2ddfd03c57782afa7c48c2d0354 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698