Displaying 1 result from an estimated 1 matches for "regtrue".
Did you mean:
regtree
2011 Mar 03
0
[LLVMdev] Improving select_cc lowering for targets with conditional move
...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 initial value of result and
the current result. It's very likely that regFalse and regResult will be the
same hardware register. So the sequence of instructions reduce...