diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2020-11-12 14:12:52 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2020-11-12 16:33:50 +0000 |
commit | fe270426c8a2a69a8f669339e83b86fbf40e25a1 (patch) | |
tree | c048fdec8e37cefb7238218a087709c01d5d3923 /compiler/optimizing/optimizing_unit_test.h | |
parent | e17530a19a717879c8dd8e70073de6aaf4ee455f (diff) |
Revert "Partial LSE analysis & store removal"
This reverts commit bb6cda60e4418c0ab557ea4090e046bed8206763.
Bug: 67037140
Reason for revert: memory leak detected in the test.
Change-Id: I81cc2f61494e96964d8be40389eddcd7c66c9266
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index 71acdacdb4..792c9db1af 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -317,23 +317,21 @@ class AdjacencyListGraph { HBasicBlock* dest_blk = name_to_block_.GetOrCreate(dest, create_block); src_blk->AddSuccessor(dest_blk); } - graph_->ClearReachabilityInformation(); graph_->ComputeDominanceInformation(); - graph_->ComputeReachabilityInformation(); for (auto [name, blk] : name_to_block_) { block_to_name_.Put(blk, name); } } - bool HasBlock(const HBasicBlock* blk) const { + bool HasBlock(const HBasicBlock* blk) { return block_to_name_.find(blk) != block_to_name_.end(); } - std::string_view GetName(const HBasicBlock* blk) const { + std::string_view GetName(const HBasicBlock* blk) { return block_to_name_.Get(blk); } - HBasicBlock* Get(const std::string_view& sv) const { + HBasicBlock* Get(const std::string_view& sv) { return name_to_block_.Get(sv); } |