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

Discussion

Vectorisation transforms a loop so that

  • A.the loop is replaced by a call to some suitable library routine
  • B.the loop bound is computed before the loop begins
  • C.several iterations are performed by a single wide instruction
  • D.the loop body is duplicated to reduce branching

Answer: C

Independence between the iterations must first be established. Data dependences, unknown alignment and unclear trip counts are the usual obstacles to applying it. Programmers sometimes supply hints to remove those obstacles.

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

Post your comment

Please log in or register to post a comment.