| 249 | } |
| 250 | |
| 251 | bool LoopFusion::CheckInit() { |
| 252 | int64_t loop_0_init; |
| 253 | if (!loop_0_->GetInductionInitValue(induction_0_, &loop_0_init)) { |
| 254 | return false; |
| 255 | } |
| 256 | |
| 257 | int64_t loop_1_init; |
| 258 | if (!loop_1_->GetInductionInitValue(induction_1_, &loop_1_init)) { |
| 259 | return false; |
| 260 | } |
| 261 | |
| 262 | if (loop_0_init != loop_1_init) { |
| 263 | return false; |
| 264 | } |
| 265 | |
| 266 | return true; |
| 267 | } |
| 268 | |
| 269 | bool LoopFusion::CheckCondition() { |
| 270 | auto condition_0 = loop_0_->GetConditionInst(); |
nothing calls this directly
no test coverage detected