diff options
| author | Aart Bik <ajcbik@google.com> | 2017-11-21 16:56:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-21 16:56:28 +0000 |
| commit | 68351ebf5b44989f7ccd75933f1f4093a8d3b670 (patch) | |
| tree | a0716ffc78d9bd115eca545e70c4ada0facbf3a8 /compiler/optimizing/instruction_simplifier.cc | |
| parent | b360bff818ad0bf59668cd2bebaaeeaa8a3b5dfe (diff) | |
| parent | cced8ba4245a061ab047a0a6882468d75d619dd9 (diff) | |
| download | art-68351ebf5b44989f7ccd75933f1f4093a8d3b670.tar.gz art-68351ebf5b44989f7ccd75933f1f4093a8d3b670.tar.bz2 art-68351ebf5b44989f7ccd75933f1f4093a8d3b670.zip | |
Merge "ART: Introduce individual HInstruction cloning."
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
| -rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index fbfee12be9..4c18e16c48 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -27,6 +27,10 @@ namespace art { +// Whether to run an exhaustive test of individual HInstructions cloning when each instruction +// is replaced with its copy if it is clonable. +static constexpr bool kTestInstructionClonerExhaustively = false; + class InstructionSimplifierVisitor : public HGraphDelegateVisitor { public: InstructionSimplifierVisitor(HGraph* graph, @@ -130,6 +134,11 @@ class InstructionSimplifierVisitor : public HGraphDelegateVisitor { }; void InstructionSimplifier::Run() { + if (kTestInstructionClonerExhaustively) { + CloneAndReplaceInstructionVisitor visitor(graph_); + visitor.VisitReversePostOrder(); + } + InstructionSimplifierVisitor visitor(graph_, codegen_, compiler_driver_, stats_); visitor.Run(); } |
