Skip to content

Commit 3cbaeac

Browse files
[OMPIRBuilder] Fix setting exec mode (llvm#104)
There was mismatch between exec mode represented by global variable and kernel environment struct
1 parent cec0810 commit 3cbaeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6360,7 +6360,7 @@ static Function *createOutlinedFunction(
63606360

63616361
if (OMPBuilder.Config.isTargetDevice()) {
63626362
std::vector<llvm::WeakTrackingVH> LLVMCompilerUsed;
6363-
emitExecutionMode(OMPBuilder, Builder, FuncName, false, LLVMCompilerUsed);
6363+
emitExecutionMode(OMPBuilder, Builder, FuncName, IsSPMD, LLVMCompilerUsed);
63646364
Type *Int8PtrTy = Type::getInt8Ty(Builder.getContext())->getPointerTo();
63656365
emitUsed("llvm.compiler.used", LLVMCompilerUsed, Int8PtrTy, OMPBuilder.M);
63666366
}

0 commit comments

Comments
 (0)