Displaying 1 result from an estimated 1 matches for "updatedvalue_i".
2011 Mar 03
0
[LLVMdev] Improving select_cc lowering for targets with conditional move
Let's consider the following piece of C code: (incomplete and not
compilable ;) )
result = initValue;
for(i)
{
...
if(condition)
result = updatedValue_i;
...
}
For targets with conditional moves, the result is updated using the
following sequence of instructions:
regTmp = regFalse;
if(condition2) regTmp = regTrue;
regResult = regTmp;
Now, you have 2 cases:
1) either condition2 = condition
In this case: regFalse is a phi node between the ini...