summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/instruction_simplifier.h
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2015-01-26 18:54:32 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-01-29 12:01:26 +0000
commit10e244f9e7f6d96a95c910a2bedef5bd3810c637 (patch)
treebc2b90ce716129115c05f79e21c58fe13b01fd20 /compiler/optimizing/instruction_simplifier.h
parentab7f56d9b9838811cb01773e45999e2cda4aa03a (diff)
downloadart-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.h4
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;
};