summaryrefslogtreecommitdiff
path: root/compiler/optimizing/load_store_analysis.h
diff options
context:
space:
mode:
authorAart Bik <ajcbik@google.com>2017-11-15 15:17:53 -0800
committerAart Bik <ajcbik@google.com>2017-11-20 10:38:26 -0800
commit2ca10eb3f47ef3c2535c137853f7a63d10bb908b (patch)
tree3684d1d5ef4791795b64620e97f952896c5a2011 /compiler/optimizing/load_store_analysis.h
parent02f41015a0933f146b886c62bb5b02c322ddf882 (diff)
Refactored optimization passes setup.
Rationale: Refactors the way we set up optimization passes in the compiler into a more centralized approach. The refactoring also found some "holes" in the existing mechanism (missing string lookup in the debugging mechanism, or inablity to set alternative name for optimizations that may repeat). Bug: 64538565 Test: test-art-host test-art-target Change-Id: Ie5e0b70f67ac5acc706db91f64612dff0e561f83
Diffstat (limited to 'compiler/optimizing/load_store_analysis.h')
-rw-r--r--compiler/optimizing/load_store_analysis.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/load_store_analysis.h b/compiler/optimizing/load_store_analysis.h
index aa8b5bbdc9..437e6be418 100644
--- a/compiler/optimizing/load_store_analysis.h
+++ b/compiler/optimizing/load_store_analysis.h
@@ -564,8 +564,8 @@ class HeapLocationCollector : public HGraphVisitor {
class LoadStoreAnalysis : public HOptimization {
public:
- explicit LoadStoreAnalysis(HGraph* graph)
- : HOptimization(graph, kLoadStoreAnalysisPassName),
+ explicit LoadStoreAnalysis(HGraph* graph, const char* name = kLoadStoreAnalysisPassName)
+ : HOptimization(graph, name),
heap_location_collector_(graph) {}
const HeapLocationCollector& GetHeapLocationCollector() const {