Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ART_COMPILER_OPTIMIZING_INDUCTION_VAR_ANALYSIS_H_ |
| 18 | #define ART_COMPILER_OPTIMIZING_INDUCTION_VAR_ANALYSIS_H_ |
| 19 | |
| 20 | #include <string> |
| 21 | |
| 22 | #include "nodes.h" |
| 23 | #include "optimization.h" |
| 24 | |
| 25 | namespace art { |
| 26 | |
| 27 | /** |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 28 | * Induction variable analysis. This class does not have a direct public API. |
| 29 | * Instead, the results of induction variable analysis can be queried through |
| 30 | * friend classes, such as InductionVarRange. |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 31 | * |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 32 | * The analysis implementation is based on the paper by M. Gerlek et al. |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 33 | * "Beyond Induction Variables: Detecting and Classifying Sequences Using a Demand-Driven SSA Form" |
| 34 | * (ACM Transactions on Programming Languages and Systems, Volume 17 Issue 1, Jan. 1995). |
| 35 | */ |
| 36 | class HInductionVarAnalysis : public HOptimization { |
| 37 | public: |
| 38 | explicit HInductionVarAnalysis(HGraph* graph); |
| 39 | |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 40 | void Run() OVERRIDE; |
| 41 | |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 42 | static constexpr const char* kInductionPassName = "induction_var_analysis"; |
| 43 | |
Wojciech Staszkiewicz | 5319d3c | 2016-08-01 17:48:59 -0700 | [diff] [blame] | 44 | private: |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 45 | struct NodeInfo { |
| 46 | explicit NodeInfo(uint32_t d) : depth(d), done(false) {} |
| 47 | uint32_t depth; |
| 48 | bool done; |
| 49 | }; |
| 50 | |
| 51 | enum InductionClass { |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 52 | kInvariant, |
| 53 | kLinear, |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 54 | kPolynomial, |
| 55 | kGeometric, |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 56 | kWrapAround, |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 57 | kPeriodic |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | enum InductionOp { |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 61 | // Operations. |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 62 | kNop, |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 63 | kAdd, |
| 64 | kSub, |
| 65 | kNeg, |
| 66 | kMul, |
| 67 | kDiv, |
Aart Bik | df7822e | 2016-12-06 10:05:30 -0800 | [diff] [blame] | 68 | kRem, |
Aart Bik | 7dc9693 | 2016-10-12 10:01:05 -0700 | [diff] [blame] | 69 | kXor, |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 70 | kFetch, |
Aart Bik | 22f0587 | 2015-10-27 15:56:28 -0700 | [diff] [blame] | 71 | // Trip-counts. |
| 72 | kTripCountInLoop, // valid in full loop; loop is finite |
| 73 | kTripCountInBody, // valid in body only; loop is finite |
| 74 | kTripCountInLoopUnsafe, // valid in full loop; loop may be infinite |
| 75 | kTripCountInBodyUnsafe, // valid in body only; loop may be infinite |
| 76 | // Comparisons for trip-count tests. |
| 77 | kLT, |
| 78 | kLE, |
| 79 | kGT, |
| 80 | kGE |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | /** |
| 84 | * Defines a detected induction as: |
| 85 | * (1) invariant: |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 86 | * op: a + b, a - b, -b, a * b, a / b, a % b, a ^ b, fetch |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 87 | * (2) linear: |
| 88 | * nop: a * i + b |
Aart Bik | df7822e | 2016-12-06 10:05:30 -0800 | [diff] [blame] | 89 | * (3) polynomial: |
| 90 | * nop: sum_lt(a) + b, for linear a |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 91 | * (4) geometric: |
Aart Bik | df7822e | 2016-12-06 10:05:30 -0800 | [diff] [blame] | 92 | * op: a * fetch^i + b, a * fetch^-i + b |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 93 | * (5) wrap-around |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 94 | * nop: a, then defined by b |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 95 | * (6) periodic |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 96 | * nop: a, then defined by b (repeated when exhausted) |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 97 | * (7) trip-count: |
Aart Bik | 22f0587 | 2015-10-27 15:56:28 -0700 | [diff] [blame] | 98 | * tc: defined by a, taken-test in b |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 99 | */ |
Vladimir Marko | 5233f93 | 2015-09-29 19:01:15 +0100 | [diff] [blame] | 100 | struct InductionInfo : public ArenaObject<kArenaAllocInductionVarAnalysis> { |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 101 | InductionInfo(InductionClass ic, |
| 102 | InductionOp op, |
| 103 | InductionInfo* a, |
| 104 | InductionInfo* b, |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 105 | HInstruction* f, |
| 106 | Primitive::Type t) |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 107 | : induction_class(ic), |
| 108 | operation(op), |
| 109 | op_a(a), |
| 110 | op_b(b), |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 111 | fetch(f), |
| 112 | type(t) {} |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 113 | InductionClass induction_class; |
| 114 | InductionOp operation; |
| 115 | InductionInfo* op_a; |
| 116 | InductionInfo* op_b; |
| 117 | HInstruction* fetch; |
Aart Bik | d0a022d | 2016-12-13 11:22:31 -0800 | [diff] [blame] | 118 | Primitive::Type type; // precision of operation |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 119 | }; |
| 120 | |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 121 | bool IsVisitedNode(HInstruction* instruction) const { |
| 122 | return map_.find(instruction) != map_.end(); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 123 | } |
| 124 | |
Aart Bik | 471a203 | 2015-09-04 18:22:11 -0700 | [diff] [blame] | 125 | InductionInfo* CreateInvariantOp(InductionOp op, InductionInfo* a, InductionInfo* b) { |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 126 | DCHECK(((op != kNeg && a != nullptr) || (op == kNeg && a == nullptr)) && b != nullptr); |
Aart Bik | 471a203 | 2015-09-04 18:22:11 -0700 | [diff] [blame] | 127 | return CreateSimplifiedInvariant(op, a, b); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 128 | } |
| 129 | |
Aart Bik | 471a203 | 2015-09-04 18:22:11 -0700 | [diff] [blame] | 130 | InductionInfo* CreateInvariantFetch(HInstruction* f) { |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 131 | DCHECK(f != nullptr); |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 132 | return new (graph_->GetArena()) |
| 133 | InductionInfo(kInvariant, kFetch, nullptr, nullptr, f, f->GetType()); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 134 | } |
| 135 | |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 136 | InductionInfo* CreateTripCount(InductionOp op, |
| 137 | InductionInfo* a, |
| 138 | InductionInfo* b, |
| 139 | Primitive::Type type) { |
Aart Bik | 52be7e7 | 2016-06-23 11:20:41 -0700 | [diff] [blame] | 140 | DCHECK(a != nullptr && b != nullptr); |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 141 | return new (graph_->GetArena()) InductionInfo(kInvariant, op, a, b, nullptr, type); |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 142 | } |
| 143 | |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 144 | InductionInfo* CreateInduction(InductionClass ic, |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 145 | InductionOp op, |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 146 | InductionInfo* a, |
| 147 | InductionInfo* b, |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 148 | HInstruction* f, |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 149 | Primitive::Type type) { |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 150 | DCHECK(a != nullptr && b != nullptr); |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 151 | return new (graph_->GetArena()) InductionInfo(ic, op, a, b, f, type); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | // Methods for analysis. |
| 155 | void VisitLoop(HLoopInformation* loop); |
| 156 | void VisitNode(HLoopInformation* loop, HInstruction* instruction); |
| 157 | uint32_t VisitDescendant(HLoopInformation* loop, HInstruction* instruction); |
| 158 | void ClassifyTrivial(HLoopInformation* loop, HInstruction* instruction); |
| 159 | void ClassifyNonTrivial(HLoopInformation* loop); |
Aart Bik | f475bee | 2015-09-16 12:50:25 -0700 | [diff] [blame] | 160 | InductionInfo* RotatePeriodicInduction(InductionInfo* induction, InductionInfo* last); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 161 | |
| 162 | // Transfer operations. |
Aart Bik | d0a022d | 2016-12-13 11:22:31 -0800 | [diff] [blame] | 163 | InductionInfo* TransferPhi(HLoopInformation* loop, |
| 164 | HInstruction* phi, |
| 165 | size_t input_index, |
| 166 | size_t adjust_input_size); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 167 | InductionInfo* TransferAddSub(InductionInfo* a, InductionInfo* b, InductionOp op); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 168 | InductionInfo* TransferNeg(InductionInfo* a); |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 169 | InductionInfo* TransferMul(InductionInfo* a, InductionInfo* b); |
Aart Bik | e6bd027 | 2016-12-16 13:57:52 -0800 | [diff] [blame] | 170 | InductionInfo* TransferConversion(InductionInfo* a, Primitive::Type from, Primitive::Type to); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 171 | |
| 172 | // Solvers. |
Aart Bik | d0a022d | 2016-12-13 11:22:31 -0800 | [diff] [blame] | 173 | InductionInfo* SolvePhi(HInstruction* phi, size_t input_index, size_t adjust_input_size); |
Aart Bik | f475bee | 2015-09-16 12:50:25 -0700 | [diff] [blame] | 174 | InductionInfo* SolvePhiAllInputs(HLoopInformation* loop, |
| 175 | HInstruction* entry_phi, |
| 176 | HInstruction* phi); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 177 | InductionInfo* SolveAddSub(HLoopInformation* loop, |
Aart Bik | f475bee | 2015-09-16 12:50:25 -0700 | [diff] [blame] | 178 | HInstruction* entry_phi, |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 179 | HInstruction* instruction, |
| 180 | HInstruction* x, |
| 181 | HInstruction* y, |
| 182 | InductionOp op, |
Aart Bik | 7dc9693 | 2016-10-12 10:01:05 -0700 | [diff] [blame] | 183 | bool is_first_call); // possibly swaps x and y to try again |
Aart Bik | df7822e | 2016-12-06 10:05:30 -0800 | [diff] [blame] | 184 | InductionInfo* SolveOp(HLoopInformation* loop, |
| 185 | HInstruction* entry_phi, |
| 186 | HInstruction* instruction, |
| 187 | HInstruction* x, |
| 188 | HInstruction* y, |
| 189 | InductionOp op); |
Aart Bik | 639cc8c | 2016-10-18 13:03:31 -0700 | [diff] [blame] | 190 | InductionInfo* SolveTest(HLoopInformation* loop, |
| 191 | HInstruction* entry_phi, |
| 192 | HInstruction* instruction, |
| 193 | int64_t oppositive_value); |
Aart Bik | e6bd027 | 2016-12-16 13:57:52 -0800 | [diff] [blame] | 194 | InductionInfo* SolveConversion(HLoopInformation* loop, |
| 195 | HInstruction* entry_phi, |
| 196 | HTypeConversion* conversion); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 197 | |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 198 | // Trip count information. |
| 199 | void VisitControl(HLoopInformation* loop); |
| 200 | void VisitCondition(HLoopInformation* loop, |
| 201 | InductionInfo* a, |
| 202 | InductionInfo* b, |
| 203 | Primitive::Type type, |
| 204 | IfCondition cmp); |
| 205 | void VisitTripCount(HLoopInformation* loop, |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 206 | InductionInfo* lower_expr, |
| 207 | InductionInfo* upper_expr, |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 208 | InductionInfo* stride, |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 209 | int64_t stride_value, |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 210 | Primitive::Type type, |
Aart Bik | f475bee | 2015-09-16 12:50:25 -0700 | [diff] [blame] | 211 | IfCondition cmp); |
Aart Bik | 9401f53 | 2015-09-28 16:25:56 -0700 | [diff] [blame] | 212 | bool IsTaken(InductionInfo* lower_expr, InductionInfo* upper_expr, IfCondition cmp); |
| 213 | bool IsFinite(InductionInfo* upper_expr, |
| 214 | int64_t stride_value, |
| 215 | Primitive::Type type, |
| 216 | IfCondition cmp); |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 217 | bool FitsNarrowerControl(InductionInfo* lower_expr, |
| 218 | InductionInfo* upper_expr, |
| 219 | int64_t stride_value, |
| 220 | Primitive::Type type, |
| 221 | IfCondition cmp); |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 222 | |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 223 | // Assign and lookup. |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 224 | void AssignInfo(HLoopInformation* loop, HInstruction* instruction, InductionInfo* info); |
| 225 | InductionInfo* LookupInfo(HLoopInformation* loop, HInstruction* instruction); |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 226 | InductionInfo* CreateConstant(int64_t value, Primitive::Type type); |
Aart Bik | 471a203 | 2015-09-04 18:22:11 -0700 | [diff] [blame] | 227 | InductionInfo* CreateSimplifiedInvariant(InductionOp op, InductionInfo* a, InductionInfo* b); |
Aart Bik | d0a022d | 2016-12-13 11:22:31 -0800 | [diff] [blame] | 228 | HInstruction* GetShiftConstant(HLoopInformation* loop, |
| 229 | HInstruction* instruction, |
| 230 | InductionInfo* initial); |
Aart Bik | cc42be0 | 2016-10-20 16:14:16 -0700 | [diff] [blame] | 231 | void AssignCycle(HPhi* phi); |
| 232 | ArenaSet<HInstruction*>* LookupCycle(HPhi* phi); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 233 | |
Aart Bik | 7d57d7f | 2015-12-09 14:39:48 -0800 | [diff] [blame] | 234 | // Constants. |
Aart Bik | 97412c92 | 2016-02-19 20:14:38 -0800 | [diff] [blame] | 235 | bool IsExact(InductionInfo* info, /*out*/ int64_t* value); |
| 236 | bool IsAtMost(InductionInfo* info, /*out*/ int64_t* value); |
| 237 | bool IsAtLeast(InductionInfo* info, /*out*/ int64_t* value); |
Aart Bik | 7d57d7f | 2015-12-09 14:39:48 -0800 | [diff] [blame] | 238 | |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 239 | // Helpers. |
Aart Bik | e6bd027 | 2016-12-16 13:57:52 -0800 | [diff] [blame] | 240 | static bool IsNarrowingLinear(InductionInfo* info); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 241 | static bool InductionEqual(InductionInfo* info1, InductionInfo* info2); |
Aart Bik | c071a01 | 2016-12-01 10:22:31 -0800 | [diff] [blame] | 242 | static std::string FetchToString(HInstruction* fetch); |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 243 | static std::string InductionToString(InductionInfo* info); |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 244 | |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 245 | // TODO: fine tune the following data structures, only keep relevant data. |
| 246 | |
| 247 | // Temporary book-keeping during the analysis. |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 248 | uint32_t global_depth_; |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 249 | ArenaVector<HInstruction*> stack_; |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 250 | ArenaSafeMap<HInstruction*, NodeInfo> map_; |
Aart Bik | 7dc9693 | 2016-10-12 10:01:05 -0700 | [diff] [blame] | 251 | ArenaVector<HInstruction*> scc_; |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 252 | ArenaSafeMap<HInstruction*, InductionInfo*> cycle_; |
Aart Bik | 0d345cf | 2016-03-16 10:49:38 -0700 | [diff] [blame] | 253 | Primitive::Type type_; |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 254 | |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 255 | /** |
| 256 | * Maintains the results of the analysis as a mapping from loops to a mapping from instructions |
| 257 | * to the induction information for that instruction in that loop. |
| 258 | */ |
| 259 | ArenaSafeMap<HLoopInformation*, ArenaSafeMap<HInstruction*, InductionInfo*>> induction_; |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 260 | |
Aart Bik | cc42be0 | 2016-10-20 16:14:16 -0700 | [diff] [blame] | 261 | /** |
| 262 | * Preserves induction cycle information for each loop-phi. |
| 263 | */ |
| 264 | ArenaSafeMap<HPhi*, ArenaSet<HInstruction*>> cycles_; |
| 265 | |
Aart Bik | e609b7c | 2015-08-27 13:46:58 -0700 | [diff] [blame] | 266 | friend class InductionVarAnalysisTest; |
Aart Bik | d14c595 | 2015-09-08 15:25:15 -0700 | [diff] [blame] | 267 | friend class InductionVarRange; |
| 268 | friend class InductionVarRangeTest; |
Aart Bik | 30efb4e | 2015-07-30 12:14:31 -0700 | [diff] [blame] | 269 | |
| 270 | DISALLOW_COPY_AND_ASSIGN(HInductionVarAnalysis); |
| 271 | }; |
| 272 | |
| 273 | } // namespace art |
| 274 | |
| 275 | #endif // ART_COMPILER_OPTIMIZING_INDUCTION_VAR_ANALYSIS_H_ |