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

Issue 1431353003: Subzero: For filetype=asm, don't print a blank line for pseudo instrs. (Closed)

Created:
5 years, 1 month ago by Jim Stichnoth
Modified:
5 years, 1 month ago
Reviewers:
Karl, sehr, 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: For filetype=asm, don't print a blank line for pseudo instrs. Originally, for each non-deleted instruction, CfgNode::emit() would call the virtual Inst::emit() and then print a newline (also printing end-of-live-range info as necessary). This resulted in clumsy blank lines in the asm output, corresponding to non target specific pseudo instructions such as FakeDef, FakeUse, FakeKill. We change this so that CfgNode::emit() only prints a newline for an InstTarget subclass, or if any end-of-live-range text was printed. If a high-level instruction still wants to emit something in a comment, it's responsible for printing its own newline. BUG= none TEST= ./pydir/szbuild_spec2k.py -O2 --force -v --filetype=asm --sz=--asm-verbose=0 TEST= ./pydir/szbuild_spec2k.py -O2 --force -v --filetype=asm --sz=--asm-verbose=1 TEST= ./pydir/szbuild_spec2k.py -O2 --force -v --filetype=asm --target=arm32 R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=3e859b730520288ace79f10c3e8064dd9dcfe6d0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -11 lines) Patch
M src/IceCfgNode.cpp View 3 chunks +14 lines, -9 lines 0 comments Download
M src/IceInst.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceInstARM32.cpp View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Jim Stichnoth
5 years, 1 month ago (2015-11-10 22:30:50 UTC) #3
Karl
lgtm
5 years, 1 month ago (2015-11-10 22:34:34 UTC) #4
Jim Stichnoth
5 years, 1 month ago (2015-11-10 22:39:54 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
3e859b730520288ace79f10c3e8064dd9dcfe6d0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698