summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMark Mendell <mark.p.mendell@intel.com>2015-08-21 09:30:05 -0400
committerMark Mendell <mark.p.mendell@intel.com>2015-08-26 11:18:59 -0400
commit0c9497da9485ba688c592e5f452b7b1305a519c0 (patch)
tree7ebcf9c4ebea923131bf6064fd5924d54306e2b7 /compiler/optimizing/graph_visualizer.cc
parent73f455ecb76d063846a82735eb80596ceee8cee3 (diff)
X86: Use short forward jumps if possible
The optimizing compiler uses 32 bit relative jumps for all forward jumps, just in case the offset is too large to fit in one byte. Some of the generated code knows that the jumps will in fact fit. Use the 'NearLabel' class for the code generator and intrinsics. Use the jecxz/jrcxz instruction for string intrinsics. Unfortunately, conditional jumps to basic blocks don't know enough to use this, as we don't know how much code will be generated. This saves a whopping 0.24% for core.oat and boot.oat sizes, but every little bit helps, and it reduces icache footprint slightly. Change-Id: I633fe3b2e0e810b4ce12fdad8c02135644b63506 Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions