diff options
author | Mads Ager <ager@google.com> | 2017-07-14 13:11:37 +0200 |
---|---|---|
committer | Mads Ager <ager@google.com> | 2017-08-10 14:04:04 +0200 |
commit | 16e528957869c7debb1f6758c9a364819e15ee1a (patch) | |
tree | 050d42754ce9bca3c3e23652093cd209ae59ea53 /compiler/optimizing/graph_visualizer.cc | |
parent | 1d2d8b1b6b359f5f476ef78662baa4b8782be530 (diff) |
RFC: Generate select instruction for conditional returns.
The select generator currently only inserts select instructions
if there is a diamond shape with a phi.
This change extends the select generator to also deal with the
pattern:
if (condition) {
movable instruction 0
return value0
} else {
movable instruction 1
return value1
}
which it turns into:
moveable instruction 0
moveable instruction 1
return select (value0, value1, condition)
Test: 592-checker-regression-bool-input
Change-Id: Iac50fb181dc2c9b7619f28977298662bc09fc0e1
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions