search for: test_param_0

Displaying 1 result from an estimated 1 matches for "test_param_0".

2020 Mar 23
3
[InstCombine] Addrspacecast and GEP assumed commutative
...being a problem. I think it is valid if the gep is inbounds but not otherwise. Matt, wdyt? > I stumbled upon this because this reordering actually gives problems for instruction selection in the NVPTX backend. > Without reordering, the above IR gets lowered to: > > ld.param.u64 %rd1, [test_param_0]; > cvta.to.global.u64 %rd2, %rd1; > mov.u16 %rs1, 0; > st.global.u16 [%rd2+32], %rs1; > ret; > > But with the reordering, the backend instead emits this: > > ld.param.u64 %rd1, [test_param_0]; > add.s64 %rd2, %rd1, 32; > cvta.to.global.u64 %rd3, %rd2; > mov.u16 %rs...