Discussion
Loop invariant code motion moves a computation
Answer: A
Correct answer: out of the loop when its operands do not change within it
If nothing the computation depends on is modified inside the loop, the result is the same on every iteration and it can be computed once in a preheader. The payoff is proportional to the trip count, which makes this one of the most valuable loop transformations, and it depends on data flow analysis to establish that the operands really are invariant.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development