Displaying 1 result from an estimated 1 matches for "cf_test".
Did you mean:
cc_test
2010 Jul 22
0
[LLVMdev] SelectionDAGBuilder doing bad things on certain architectures
The selection dag builder has an 'optimization' added into the visitBr function which makes assumptions that are not valid on all architectures. The problem is this.
The following function
kernel void cf_test(global int* a, int b, int c, int e)
{
int d = 0;
if (!b && c < e) {
d = a + b;
}
*a = d;
}
Is transformed into something equivalent to this:
Kernel void cf_test(global int* a, int b, int c, int e)
{
Int d;
If (b) {
d = 0;
} else {...