diff options
author | Calin Juravle <calin@google.com> | 2015-01-26 18:54:32 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-01-29 12:01:26 +0000 |
commit | 10e244f9e7f6d96a95c910a2bedef5bd3810c637 (patch) | |
tree | bc2b90ce716129115c05f79e21c58fe13b01fd20 /compiler/optimizing/instruction_simplifier.h | |
parent | ab7f56d9b9838811cb01773e45999e2cda4aa03a (diff) | |
download | art-10e244f9e7f6d96a95c910a2bedef5bd3810c637.tar.gz art-10e244f9e7f6d96a95c910a2bedef5bd3810c637.tar.bz2 art-10e244f9e7f6d96a95c910a2bedef5bd3810c637.zip |
optimizing: NullCheck elimination
How it works:
- run a type analysis to propagate null information on instructions
- during the last instruction simplifier remove null checks for which
the input is known to be not null
The current type analysis is actually a nullability analysis but it will
be reused in follow up CLs to propagate type information: so it keeps
the more convenient name.
Change-Id: I54bb1d32ab24604b4d677d1ecdaf8d60a5ff5ce9
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.h')
-rw-r--r-- | compiler/optimizing/instruction_simplifier.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_simplifier.h b/compiler/optimizing/instruction_simplifier.h index 7068c7fc10..bca6697d05 100644 --- a/compiler/optimizing/instruction_simplifier.h +++ b/compiler/optimizing/instruction_simplifier.h @@ -27,8 +27,8 @@ namespace art { */ class InstructionSimplifier : public HOptimization { public: - explicit InstructionSimplifier(HGraph* graph) - : HOptimization(graph, true, "instruction_simplifier") {} + explicit InstructionSimplifier(HGraph* graph, const char* name = "instruction_simplifier") + : HOptimization(graph, true, name) {} void Run() OVERRIDE; }; |