• recategorized by
10,226 views

2 Answers

2 2 votes

Ans is D

In computer science, loop fusion (or loop jamming) is a compiler optimization and loop transformation which replaces multiple loops with a single one. It is possible when two loops iterate over the same range and do not reference each other's data.

Loop fusion does not always improve run-time speed. On some architectures, two loops may actually perform better than one loop because, for example, there is increased data locality within each loop. In these cases, a single loop may be transformed into two, which is called loop fission.

1 1 vote
Let's examine each option:

A) Loop Unrolling: This technique reduces the number of jumps by replicating the body of the loop, provided that the number of iterations is constant and known at compile time. However, if the body of the loop is large, unrolling may not be beneficial.

B) Strength Reduction: Strength reduction involves replacing a computationally expensive operation with an equivalent operation that is less costly. For example, the multiplication operator (*) can be replaced by a lower-cost operator, such as addition (+).

 

In conclusion, the correct answer is D) Loop Jamming.

 
• edited by
Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
4.5k
4.5k views
go_editor asked Aug 8, 2016
4,494 views
Loop unrolling is a code optimization technique:that avoids tests at every iteration of the loopthat improves preformance by decreasing the number of instructions in a ba...
4 4 votes
2 answers 2 answers
2.5k
2.5k views
go_editor asked Aug 16, 2016
2,511 views
Which of the following is false?The grammar $S \rightarrow a \: Sb \mid bSa \mid SS \mid \in$, where $S$ is the only non-terminal symbol and $\in$ is the null string, is ...
4 4 votes
1 1 answer
3.3k
3.3k views
go_editor asked Aug 16, 2016
3,340 views
Given the following two statements:Strategic value of data mining is timestampingInformation collection is an expensive process in building an expert systemWhich of the f...
1 1 vote
1 1 answer
2.8k
2.8k views
go_editor asked Aug 16, 2016
2,769 views
Consider the following two statements:Data scrubling is a process to upgrade the quality of data, before it is moved into Data warehouseData scrubling is a process of rej...