diff options
author | 2018-04-27 16:38:24 +0000 | |
---|---|---|
committer | 2018-04-27 16:38:24 +0000 | |
commit | 2f8279eab734f2e701625e283a0c5776ecbea1bc (patch) | |
tree | 02100f78a38ff6e7a93746efe4d288a52144684e /compiler/optimizing/optimization.h | |
parent | 8db788b3484d0d926fff631ba022add50936b7c1 (diff) | |
parent | 2477320a8d9de58ede68e2645ea53c10f71dcd57 (diff) |
Merge "Step 1 of 2: conditional passes."
Diffstat (limited to 'compiler/optimizing/optimization.h')
-rw-r--r-- | compiler/optimizing/optimization.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/optimization.h b/compiler/optimizing/optimization.h index c170f155fa..b00d686e5f 100644 --- a/compiler/optimizing/optimization.h +++ b/compiler/optimizing/optimization.h @@ -47,8 +47,9 @@ class HOptimization : public ArenaObject<kArenaAllocOptimization> { // 'instruction_simplifier$before_codegen'. const char* GetPassName() const { return pass_name_; } - // Perform the analysis itself. - virtual void Run() = 0; + // Perform the pass or analysis. Returns false if no optimizations occurred or no useful + // information was computed (this is best effort, returning true is always ok). + virtual bool Run() = 0; protected: HGraph* const graph_; |