Skip to content

Commit f05fd92

Browse files
ergawyronlieb
authored andcommitted
post-merge fixes
1 parent 9de8737 commit f05fd92

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,6 @@ static LogicalResult checkImplementationStatus(Operation &op) {
313313
if (!op.getNontemporalVars().empty())
314314
op.emitWarning()
315315
<< "ignored clause: nontemporal in omp.simd operation";
316-
317-
if (!op.getReductionVars().empty() || op.getReductionByref() ||
318-
op.getReductionSyms())
319-
op.emitWarning() << "ignored clause: reduction in omp.simd operation";
320316
})
321317
.Case<omp::AtomicReadOp, omp::AtomicWriteOp, omp::AtomicUpdateOp,
322318
omp::AtomicCaptureOp>([&](auto op) { checkHint(op, result); })
@@ -2693,15 +2689,6 @@ convertOmpSimd(Operation &opInst, llvm::IRBuilderBase &builder,
26932689
if (failed(checkImplementationStatus(opInst)))
26942690
return failure();
26952691

2696-
// This is needed to make sure that uses of entry block arguments for the
2697-
// reduction clause, which is not yet being translated, are mapped to the
2698-
// outside values. This has the effect of ignoring the clause without causing
2699-
// a compiler crash.
2700-
auto blockArgIface = cast<omp::BlockArgOpenMPOpInterface>(*simdOp);
2701-
for (auto [arg, var] : llvm::zip_equal(blockArgIface.getReductionBlockArgs(),
2702-
simdOp.getReductionVars()))
2703-
moduleTranslation.mapValue(arg, moduleTranslation.lookupValue(var));
2704-
27052692
PrivateVarsInfo privateVarsInfo(simdOp);
27062693

27072694
MutableArrayRef<BlockArgument> reductionArgs =

mlir/test/Target/LLVMIR/openmp-todo.mlir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: mlir-translate -mlir-to-llvmir -split-input-file -verify-diagnostics %s
2-
// XFAIL: *
32

43
llvm.func @atomic_hint(%v : !llvm.ptr, %x : !llvm.ptr, %expr : i32) {
54
// expected-warning@below {{hint clause discarded}}

0 commit comments

Comments
 (0)