@@ -1201,15 +1201,6 @@ std::optional<PrivateRecipeOp>
12011201PrivateRecipeOp::createAndPopulate (OpBuilder &builder, Location loc,
12021202 StringRef recipeName, Type varType,
12031203 StringRef varName, ValueRange bounds) {
1204-
1205- // Check if a symbol with this name already exists in the symbol table.
1206- // If it does - don't assume that we can just reuse the existing one.
1207- Operation *parentOp = builder.getInsertionBlock ()->getParentOp ();
1208- if (parentOp &&
1209- SymbolTable::lookupNearestSymbolFrom (
1210- parentOp, mlir::StringAttr::get (builder.getContext (), varName)))
1211- return std::nullopt ;
1212-
12131204 // First, validate that we can handle this variable type
12141205 bool isMappable = isa<MappableType>(varType);
12151206 bool isPointerLike = isa<PointerLikeType>(varType);
@@ -1289,15 +1280,6 @@ std::optional<FirstprivateRecipeOp>
12891280FirstprivateRecipeOp::createAndPopulate (OpBuilder &builder, Location loc,
12901281 StringRef recipeName, Type varType,
12911282 StringRef varName, ValueRange bounds) {
1292-
1293- // Check if a symbol with this name already exists in the symbol table.
1294- // If it does - don't assume that we can just reuse the existing one.
1295- Operation *parentOp = builder.getInsertionBlock ()->getParentOp ();
1296- if (parentOp &&
1297- SymbolTable::lookupNearestSymbolFrom (
1298- parentOp, mlir::StringAttr::get (builder.getContext (), varName)))
1299- return std::nullopt ;
1300-
13011283 // First, validate that we can handle this variable type
13021284 bool isMappable = isa<MappableType>(varType);
13031285 bool isPointerLike = isa<PointerLikeType>(varType);
0 commit comments