Machine-translated by Google. Questions are authored in English.
Top

Discussion

Loop fission, the opposite of fusion, is applied in order to

  • A.remove the induction variable from the loop entirely
  • B.convert the loop into a straight line sequence of code
  • C.improve locality or expose parallelism in part of the body
  • D.reduce the total number of instructions in the program

Answer: C

Splitting a body lets each resulting loop touch a smaller working set or be vectorised independently. Which of fusion and fission helps depends entirely on the code and the machine. Measurement rather than principle usually decides the question.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.