@@ -3426,11 +3426,6 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3426
3426
else
3427
3427
Config.setGridValue (getGridValue (T, ReductionFunc));
3428
3428
3429
- uint32_t SrcLocStrSize;
3430
- Constant *SrcLocStr = getOrCreateDefaultSrcLocStr (SrcLocStrSize);
3431
- Value *RTLoc =
3432
- getOrCreateIdent (SrcLocStr, SrcLocStrSize, omp::IdentFlag (0 ), 0 );
3433
-
3434
3429
// Build res = __kmpc_reduce{_nowait}(<gtid>, <n>, sizeof(RedList),
3435
3430
// RedList, shuffle_reduce_func, interwarp_copy_func);
3436
3431
// or
@@ -3483,7 +3478,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3483
3478
Builder.CreatePointerBitCastOrAddrSpaceCast (SarFunc, PtrTy);
3484
3479
Value *WcFuncCast =
3485
3480
Builder.CreatePointerBitCastOrAddrSpaceCast (WcFunc, PtrTy);
3486
- Value *Args[] = {RTLoc, ReductionDataSize, RL, SarFuncCast, WcFuncCast};
3481
+ Value *Args[] = {SrcLocInfo, ReductionDataSize, RL, SarFuncCast,
3482
+ WcFuncCast};
3487
3483
Function *Pv2Ptr = getOrCreateRuntimeFunctionPtr (
3488
3484
RuntimeFunction::OMPRTL___kmpc_nvptx_parallel_reduce_nowait_v2);
3489
3485
Res = Builder.CreateCall (Pv2Ptr, Args);
@@ -3506,7 +3502,7 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3506
3502
Value *KernelTeamsReductionPtr = Builder.CreateCall (
3507
3503
RedFixedBuferFn, {}, " _openmp_teams_reductions_buffer_$_$ptr" );
3508
3504
3509
- Value *Args3[] = {RTLoc ,
3505
+ Value *Args3[] = {SrcLocInfo ,
3510
3506
KernelTeamsReductionPtr,
3511
3507
Builder.getInt32 (ReductionBufNum),
3512
3508
ReductionDataSize,
0 commit comments