@@ -3447,11 +3447,6 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3447
3447
else
3448
3448
Config.setGridValue (getGridValue (T, ReductionFunc));
3449
3449
3450
- uint32_t SrcLocStrSize;
3451
- Constant *SrcLocStr = getOrCreateDefaultSrcLocStr (SrcLocStrSize);
3452
- Value *RTLoc =
3453
- getOrCreateIdent (SrcLocStr, SrcLocStrSize, omp::IdentFlag (0 ), 0 );
3454
-
3455
3450
// Build res = __kmpc_reduce{_nowait}(<gtid>, <n>, sizeof(RedList),
3456
3451
// RedList, shuffle_reduce_func, interwarp_copy_func);
3457
3452
// or
@@ -3504,7 +3499,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3504
3499
Builder.CreatePointerBitCastOrAddrSpaceCast (SarFunc, PtrTy);
3505
3500
Value *WcFuncCast =
3506
3501
Builder.CreatePointerBitCastOrAddrSpaceCast (WcFunc, PtrTy);
3507
- Value *Args[] = {RTLoc, ReductionDataSize, RL, SarFuncCast, WcFuncCast};
3502
+ Value *Args[] = {SrcLocInfo, ReductionDataSize, RL, SarFuncCast,
3503
+ WcFuncCast};
3508
3504
Function *Pv2Ptr = getOrCreateRuntimeFunctionPtr (
3509
3505
RuntimeFunction::OMPRTL___kmpc_nvptx_parallel_reduce_nowait_v2);
3510
3506
Res = Builder.CreateCall (Pv2Ptr, Args);
@@ -3527,7 +3523,7 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createReductionsGPU(
3527
3523
Value *KernelTeamsReductionPtr = Builder.CreateCall (
3528
3524
RedFixedBuferFn, {}, " _openmp_teams_reductions_buffer_$_$ptr" );
3529
3525
3530
- Value *Args3[] = {RTLoc ,
3526
+ Value *Args3[] = {SrcLocInfo ,
3531
3527
KernelTeamsReductionPtr,
3532
3528
Builder.getInt32 (ReductionBufNum),
3533
3529
ReductionDataSize,
0 commit comments