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

Issue 557953007: Subzero: Fix incorrect address mode inference involving Phi temporaries. (Closed)

Created:
6 years, 3 months ago by Jim Stichnoth
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

Subzero: Fix incorrect address mode inference involving Phi temporaries. Also, refactor the key part of the address mode inference into separate functions, since it's getting unwieldy. The main thing is that we mark phi temporaries as multi-definition, and disallow address mode inference transformations that involve such temporaries, because this is incorrect particular when there are backward branches involved. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e5ac7db

Patch Set 1 #

Patch Set 2 : Remove accidental garbage #

Total comments: 2

Patch Set 3 : Add check against Var2->getIsMultidef() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -104 lines) Patch
M src/IceInst.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceOperand.h View 3 chunks +13 lines, -3 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 chunks +151 lines, -101 lines 0 comments Download
M tests_lit/llvm2ice_tests/phi.ll View 1 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Jim Stichnoth
This fixes the remaining spec2k/O2 components, at least with the training set input.
6 years, 3 months ago (2014-09-15 12:29:50 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/557953007/diff/20001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/557953007/diff/20001/src/IceTargetLoweringX8632.cpp#newcode3590 src/IceTargetLoweringX8632.cpp:3590: !Var2->getIsMultidef() && true) { Is there a reason that ...
6 years, 3 months ago (2014-09-15 16:37:04 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/557953007/diff/20001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/557953007/diff/20001/src/IceTargetLoweringX8632.cpp#newcode3590 src/IceTargetLoweringX8632.cpp:3590: !Var2->getIsMultidef() && true) { On 2014/09/15 16:37:04, jvoung wrote: ...
6 years, 3 months ago (2014-09-15 17:26:54 UTC) #4
jvoung (off chromium)
lgtm
6 years, 3 months ago (2014-09-15 17:34:01 UTC) #5
Jim Stichnoth
6 years, 3 months ago (2014-09-15 17:42:22 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as e5ac7db (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698