DescriptionAdd -reorder-basic-blocks option and fix nop insertion
1. Basic block reordering can be enabled with -reorder-basic-blocks option enabled.
Blocks will be sorted according to the Reversed Post Traversal Order, but the next
node to visit among all candidate children nodes is selected 'randomly'.
Example:
A
/ \
B C
\ /
D
This CFG can generate two possible layouts:
A-B-C-D or A-C-B-D
2. Fix nop insetion
Add checks to avoiding insertions in empty basic blocks(dead blocks) and bundle locked instructions.
BUG=
R=jpp@chromium.org, jvoung@chromium.org, stichnot@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=969f6a33c32f9e7197672fbc911918589f5218bd
Patch Set 1 #Patch Set 2 : Minor fix #
Total comments: 20
Patch Set 3 : fix comments #
Total comments: 8
Patch Set 4 : #Patch Set 5 : minor fix #
Total comments: 4
Patch Set 6 : #
Total comments: 2
Patch Set 7 : #Patch Set 8 : rebase to master branch #
Messages
Total messages: 14 (1 generated)
|