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

Issue 568473002: Add phi instruction to Subzero bitcode reader. (Closed)

Created:
6 years, 3 months ago by Karl
Modified:
6 years, 3 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 9

Patch Set 3 : Fix issues raised in patch set 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -63 lines) Patch
M src/PNaClTranslator.cpp View 1 2 24 chunks +109 lines, -63 lines 0 comments Download
A tests_lit/reader_tests/phi.ll View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Karl
6 years, 3 months ago (2014-09-11 16:57:32 UTC) #2
Jim Stichnoth
lgtm, including the non-phi-related refactoring :) https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#newcode1622 src/PNaClTranslator.cpp:1622: unsigned NumValues = ...
6 years, 3 months ago (2014-09-11 18:26:40 UTC) #3
jvoung (off chromium)
LGTM too (tiny nit) https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#newcode1611 src/PNaClTranslator.cpp:1611: // PHI: [ty, val0,bb0, ...] ...
6 years, 3 months ago (2014-09-11 19:14:43 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#newcode1611 src/PNaClTranslator.cpp:1611: // PHI: [ty, val0,bb0, ...] On 2014/09/11 19:14:43, jvoung ...
6 years, 3 months ago (2014-09-11 19:31:29 UTC) #5
Karl
Committed patchset #3 (id:40001) manually as 4766156 (presubmit successful).
6 years, 3 months ago (2014-09-11 21:42:56 UTC) #6
Karl
6 years, 3 months ago (2014-09-11 21:43:04 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#...
src/PNaClTranslator.cpp:1611: // PHI: [ty, val0,bb0, ...]
On 2014/09/11 19:31:29, stichnot wrote:
> On 2014/09/11 19:14:43, jvoung wrote:
> > add a space between val0, bb0 ?
> 
> I assumed that was intentional grouping, e.g.
>   [ty, val0,bb0, val1,bb1, val2,bb2, ...]

Actually, the space probably be added. Clarifying ... by adding pair "valN, bbN
at end.

https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#...
src/PNaClTranslator.cpp:1622: unsigned NumValues = Values.size()/2;
On 2014/09/11 18:26:40, stichnot wrote:
> Maybe use "Values.size() >> 1" to make it a little more clear that you're
> discarding the odd bit?
> 
> Also, if you just move this expression into the InstPhi::create() call, you
> won't even have to change "unsigned" to "Ice::SizeT". :)

Done.

https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#...
src/PNaClTranslator.cpp:1637: StrBuf << "Phi node expects type " << Ty << " but
found: " << Op;
On 2014/09/11 18:26:40, stichnot wrote:
> Nit: maybe "operand" or "instruction" instead of "node"?

Done.

https://codereview.chromium.org/568473002/diff/20001/src/PNaClTranslator.cpp#...
src/PNaClTranslator.cpp:1641: Phi->addArgument(Op, getBasicBlock(Values[i+1]));
On 2014/09/11 18:26:40, stichnot wrote:
> hmm, did clang-format really allow "i+1" without spaces? :)

Done.

Powered by Google App Engine
This is Rietveld 408576698