OSDN Git Service

Add a prepare for register allocation pass.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 30 Sep 2014 12:54:09 +0000 (13:54 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 6 Oct 2014 17:52:56 +0000 (18:52 +0100)
commit26a25ef62a13f409f941aa39825a51b4d6f0f047
treeaa0ed991cfcea17297e85f74624a44e32e8913cf
parent17b1c174dddb1d83018740c2084ab42daa812fff
Add a prepare for register allocation pass.

- Currently the pass just changes the uses of checks to the
  actual values.
- Also optimize array access, now that inputs can be constants.
- And fix another bug in the register allocator reveiled by
  this change.

Change-Id: I43be0dbde9330ee5c8f9d678de11361292d8bd98
15 files changed:
compiler/Android.mk
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/locations.cc
compiler/optimizing/locations.h
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/prepare_for_register_allocation.cc [new file with mode: 0644]
compiler/optimizing/prepare_for_register_allocation.h [new file with mode: 0644]
compiler/optimizing/register_allocator.cc
compiler/utils/x86/assembler_x86.cc
compiler/utils/x86/assembler_x86.h
compiler/utils/x86_64/assembler_x86_64.cc
compiler/utils/x86_64/assembler_x86_64.h