Question: Optimize the code by eliminating common sub expression, performing reduction in strength on induction variable and eliminating all the induction variables. dp = 0 ;
Optimize the code by eliminating common sub expression, performing reduction in strength on induction variable and eliminating all the induction variables.
dp ;
i ;
L : t i ;
t At;
t i ;
t Bt;
t t t;
dp dp t;
i i;
if i n goto L;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
