diff options
| author | 2015-11-21 01:12:29 +0000 | |
|---|---|---|
| committer | 2015-11-21 01:12:29 +0000 | |
| commit | ce8f06b043691f9a710eb402bf80b6fbfd4a9581 (patch) | |
| tree | 73b25e291504812915a35ca4392726d4116d3ae9 /compiler/optimizing/bounds_check_elimination.h | |
| parent | e340e9c23f68663cbe0c4d4f961f8b56a1ea80e9 (diff) | |
| parent | 4b0d02ccdecad8cb138f8b272889bcbd66c0e755 (diff) | |
Merge "Dynamic BCE (based on induction range analysis)"
am: 4b0d02ccde
* commit '4b0d02ccdecad8cb138f8b272889bcbd66c0e755':
Dynamic BCE (based on induction range analysis)
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.h')
| -rw-r--r-- | compiler/optimizing/bounds_check_elimination.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.h b/compiler/optimizing/bounds_check_elimination.h index cdff3ca0ba..b9df686ffd 100644 --- a/compiler/optimizing/bounds_check_elimination.h +++ b/compiler/optimizing/bounds_check_elimination.h @@ -21,12 +21,16 @@ namespace art { +class SideEffectsAnalysis; class HInductionVarAnalysis; class BoundsCheckElimination : public HOptimization { public: - BoundsCheckElimination(HGraph* graph, HInductionVarAnalysis* induction_analysis) + BoundsCheckElimination(HGraph* graph, + const SideEffectsAnalysis& side_effects, + HInductionVarAnalysis* induction_analysis) : HOptimization(graph, kBoundsCheckEliminiationPassName), + side_effects_(side_effects), induction_analysis_(induction_analysis) {} void Run() OVERRIDE; @@ -34,6 +38,7 @@ class BoundsCheckElimination : public HOptimization { static constexpr const char* kBoundsCheckEliminiationPassName = "BCE"; private: + const SideEffectsAnalysis& side_effects_; HInductionVarAnalysis* induction_analysis_; DISALLOW_COPY_AND_ASSIGN(BoundsCheckElimination); |