Skip to content

Commit a101662

Browse files
author
Razvan Lupusoru
committed
Restore the data operands verifier
1 parent 3d04bd6 commit a101662

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,18 +1045,14 @@ LogicalResult acc::ReductionRecipeOp::verifyRegions() {
10451045
template <typename Op>
10461046
static LogicalResult checkDataOperands(Op op,
10471047
const mlir::ValueRange &operands) {
1048-
for (mlir::Value operand : operands) {
1048+
for (mlir::Value operand : operands)
10491049
if (!mlir::isa<acc::AttachOp, acc::CopyinOp, acc::CopyoutOp, acc::CreateOp,
10501050
acc::DeleteOp, acc::DetachOp, acc::DevicePtrOp,
10511051
acc::GetDevicePtrOp, acc::NoCreateOp, acc::PresentOp>(
10521052
operand.getDefiningOp()))
10531053
return op.emitError(
10541054
"expect data entry/exit operation or acc.getdeviceptr "
10551055
"as defining op");
1056-
mlir::SymbolRefAttr operandRecipe = getRecipe(operand.getDefiningOp());
1057-
if (operandRecipe)
1058-
return op.emitError("recipe not expected for data mapping operations");
1059-
}
10601056
return success();
10611057
}
10621058

0 commit comments

Comments
 (0)