Open nurmukhametov opened 5 months ago
Consider two examples that are same but the second one generates better code:
void SetByte1(int8& dest, int8 src) { dest = src; } void SetByte2(int8& dest, int8 src) { varying bool mask = __mask; unmasked { dest = mask ? src : dest; } }
It is not clear why the compiler is unable to generate same code for the first example. See #2821.
This one is very nice to see!
Consider two examples that are same but the second one generates better code:
It is not clear why the compiler is unable to generate same code for the first example. See #2821.