| 379 | } |
| 380 | |
| 381 | std::vector<Instruction*> LoopDependenceAnalysis::GetSubscripts( |
| 382 | const Instruction* instruction) { |
| 383 | Instruction* access_chain = GetOperandDefinition(instruction, 0); |
| 384 | |
| 385 | std::vector<Instruction*> subscripts; |
| 386 | |
| 387 | for (auto i = 1u; i < access_chain->NumInOperandWords(); ++i) { |
| 388 | subscripts.push_back(GetOperandDefinition(access_chain, i)); |
| 389 | } |
| 390 | |
| 391 | return subscripts; |
| 392 | } |
| 393 | |
| 394 | SENode* LoopDependenceAnalysis::GetConstantTerm(const Loop* loop, |
| 395 | SERecurrentNode* induction) { |
no test coverage detected