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

Issue 1414343010: Sort allocas, compute frame pointer in Cfg pass (Closed)

Created:
5 years, 1 month ago by sehr
Modified:
5 years, 1 month ago
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

Sort allocas, compute frame pointer in Cfg pass Split allocas in the entry block into two categories. The first has alignment <= stack alignment and constant size. The second violates one or both of those conditions. Sort both of these lists in descending alignment order and emit. Also, compute the need for a frame pointer during the pass. BUG= R=jpp@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e39d0ca2c6a0cbc6e68b6d4323f0f8cfb1914840

Patch Set 1 #

Patch Set 2 : Segregate allocas in the entry block, sort descending by alignment #

Patch Set 3 : Cut over to sorted alloca for computing frame pointer #

Total comments: 6

Patch Set 4 : Improve sorting comment. #

Patch Set 5 : Code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -21 lines) Patch
M src/IceCfg.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 2 3 4 2 chunks +86 lines, -20 lines 0 comments Download
M src/IceTargetLowering.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86Base.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
sehr
Please review this first. I've decided to refactor the big alloca cl into this first. ...
5 years, 1 month ago (2015-11-06 18:19:39 UTC) #3
John
lgtm
5 years, 1 month ago (2015-11-06 18:23:00 UTC) #4
Jim Stichnoth
otherwise lgtm https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp#newcode454 src/IceCfg.cpp:454: void Cfg::sortAllocas(std::vector<Inst *> &Allocas, InstList &Insts, Use ...
5 years, 1 month ago (2015-11-06 18:44:11 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp#newcode458 src/IceCfg.cpp:458: // Sort by decreasing alignment. This is so that ...
5 years, 1 month ago (2015-11-06 18:45:27 UTC) #6
sehr
Thanks for the reviews. PTAL. https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1414343010/diff/40001/src/IceCfg.cpp#newcode454 src/IceCfg.cpp:454: void Cfg::sortAllocas(std::vector<Inst *> &Allocas, ...
5 years, 1 month ago (2015-11-06 19:01:15 UTC) #7
sehr
5 years, 1 month ago (2015-11-06 19:25:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
e39d0ca2c6a0cbc6e68b6d4323f0f8cfb1914840 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698