OSDN Git Service

Properly scope HLoopOptimization's allocator.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 5 Oct 2016 08:55:42 +0000 (09:55 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 5 Oct 2016 08:55:42 +0000 (09:55 +0100)
commitebe167422f6197b9df0698bbeb944a0e4eea5f2d
tree60bb0084030cadfed694261c36c5722f4f945869
parent2a5c5160771ad528bc9b3ac36ac5785a184c956d
Properly scope HLoopOptimization's allocator.

HOptimization classes do not get their destructor called,
as they are arena objects. So the scope for the optimization
allocator needs to be the Run method.

Also anticipate bisection search breakage by adding
HLoopOptimization to the list of recognized optimizations.

Change-Id: I7770989c39d5700a3b6b0a20af5d4b874dfde111
compiler/optimizing/loop_optimization.cc
compiler/optimizing/loop_optimization.h
compiler/optimizing/optimizing_compiler.cc