forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
llvm/llvm-project
#122049Labels
Under InvestigationgenericBuild error, or some other issue not caused by an LLVM bugBuild error, or some other issue not caused by an LLVM bug
Description
Consider this OpenCL kernel:
kernel void testAdd(global long* io) {
long C = ((long) 1) << 50;
io[get_global_id(0)] = C + io[get_global_id(0)];
}
This ISA is generated for the long add:
v_mov_b32_e32 v4, 0x40000
v_add_co_u32_e32 v2, vcc, 0, v2
v_addc_co_u32_e32 v3, vcc, v3, v4, vcc
As you see, the above code is.. un-necessary. In particular, v_add_co_u32_e32 v2, vcc, 0, v2 does not change the value of v2, and can not produce carry-out.
Metadata
Metadata
Assignees
Labels
Under InvestigationgenericBuild error, or some other issue not caused by an LLVM bugBuild error, or some other issue not caused by an LLVM bug