My code looks something like this
while(!eof)
{
if(A)
doSomething;
if(B)
doSomething;
}
A and B are parameters from comand line. There may be also more parameters. I have struct of Bools, in which are all posible parameters and for every parameter, it determines if he exist or not.
Can i make compiler to not read the some part of the code?
I mean, in this code he will check for existence of B every iteration. What i want to achieve is that he will only check once
if(B)
doSomething;
I want this just to optimalize my program and i NEED to have both ifs in one cycle.