We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb20c3 commit b640165Copy full SHA for b640165
compiler/rustc_codegen_llvm/src/builder/gpu_offload.rs
@@ -368,9 +368,11 @@ fn gen_call_handling<'ll>(
368
369
let v = unsafe { llvm::LLVMGetOperand(kernel_call, index as u32).unwrap() };
370
builder.store(v, alloca, Align::EIGHT);
371
- let val = builder.load(in_ty, alloca, Align::EIGHT);
372
- let gep = builder.inbounds_gep(cx.type_f32(), val, &[i32_0]);
373
- vals.push(val);
+ //let val = builder.load(in_ty, alloca, Align::EIGHT);
+ //let gep = builder.inbounds_gep(cx.type_f32(), val, &[i32_0]);
+ let gep = builder.inbounds_gep(cx.type_f32(), v, &[i32_0]);
374
+ vals.push(v);
375
+ //vals.push(val);
376
geps.push(gep);
377
}
378
0 commit comments