made easy test series compiler design
in Compiler Design
102 views
0 votes
0 votes

I have a doubt in statement number 2 , why we can’t compute the strength reduction in 2nd statement

in Compiler Design
by
5 points
102 views

1 comment

What is the ans 1 and 3 only?
0
0

1 Answer

0 votes
0 votes
the value of n should be a power of 2 to perform the shift operation. Strength reduction converts expensive multiplication to shift operations. Here it is not mentioned n is a power of 2.
by
9 points
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.