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

Issue 1353923004: Subzero: Fix a couple of debugging tools. (Closed)

Created:
5 years, 3 months ago by Jim Stichnoth
Modified:
5 years, 3 months ago
Reviewers:
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: Fix a couple of debugging tools. 1. Regalloc dump output was displaying status updates for the wrong variable in some cases. 2. getPhysicalRegister() creates a variable for referring to a specific physical register for low-level purposes, such as the stack pointer, or the frame pointer, or a pushed/popped callee-save register. We change its behavior so that all such physical registers do not have their liveness tracked/validated, not just the stack pointer. For #2, the original behavior was causing a liveness validation failure if a function had a single basic block and used callee-save registers, and the -asm-verbose flag was used. This is because -asm-verbose runs a final liveness pass after the prolog/epilog are generated, and the initial callee-save register pushes would make it look like single-basic-block variables are live coming into a basic block, which is a hallmark of a liveness problem. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=696605575c4ba11df5ec56149c561839d1bfe532

Patch Set 1 #

Patch Set 2 : Update a comment #

Total comments: 2

Patch Set 3 : Prepare test for enabling other targets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -23 lines) Patch
M src/IceOperand.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceRegAlloc.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 chunk +6 lines, -6 lines 0 comments Download
A tests_lit/llvm2ice_tests/asm-verbose.ll View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 3 months ago (2015-09-18 06:04:13 UTC) #2
John
lgtm https://codereview.chromium.org/1353923004/diff/20001/tests_lit/llvm2ice_tests/asm-verbose.ll File tests_lit/llvm2ice_tests/asm-verbose.ll (right): https://codereview.chromium.org/1353923004/diff/20001/tests_lit/llvm2ice_tests/asm-verbose.ll#newcode5 tests_lit/llvm2ice_tests/asm-verbose.ll:5: ; RUN: %p2i -i %s --filetype=asm --args -O2 ...
5 years, 3 months ago (2015-09-18 10:26:14 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1353923004/diff/20001/tests_lit/llvm2ice_tests/asm-verbose.ll File tests_lit/llvm2ice_tests/asm-verbose.ll (right): https://codereview.chromium.org/1353923004/diff/20001/tests_lit/llvm2ice_tests/asm-verbose.ll#newcode5 tests_lit/llvm2ice_tests/asm-verbose.ll:5: ; RUN: %p2i -i %s --filetype=asm --args -O2 -asm-verbose ...
5 years, 3 months ago (2015-09-18 13:38:40 UTC) #4
Jim Stichnoth
5 years, 3 months ago (2015-09-18 13:41:07 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
696605575c4ba11df5ec56149c561839d1bfe532 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698