Skip to content

Commit 8dbc393

Browse files
authored
[flang][cuda][NFC] Remove shared alloc addr space (#128535)
1 parent 571b787 commit 8dbc393

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,6 @@ mlir::Value IntrinsicLibrary::genAtomicOr(mlir::Type resultType,
27282728
mlir::Value IntrinsicLibrary::genAtomicCas(mlir::Type resultType,
27292729
llvm::ArrayRef<mlir::Value> args) {
27302730
assert(args.size() == 3);
2731-
assert(args[1].getType() == args[2].getType());
27322731
auto successOrdering = mlir::LLVM::AtomicOrdering::acq_rel;
27332732
auto failureOrdering = mlir::LLVM::AtomicOrdering::monotonic;
27342733
auto llvmPtrTy = mlir::LLVM::LLVMPointerType::get(resultType.getContext());

flang/lib/Optimizer/CodeGen/CodeGen.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,6 @@ struct AllocaOpConversion : public fir::FIROpConversion<fir::AllocaOp> {
293293
rewriter.setInsertionPointAfter(size.getDefiningOp());
294294
}
295295

296-
if (auto dataAttr = alloc->getAttrOfType<cuf::DataAttributeAttr>(
297-
cuf::getDataAttrName())) {
298-
if (dataAttr.getValue() == cuf::DataAttribute::Shared)
299-
allocaAs = 3;
300-
}
301-
302296
// NOTE: we used to pass alloc->getAttrs() in the builder for non opaque
303297
// pointers! Only propagate pinned and bindc_name to help debugging, but
304298
// this should have no functional purpose (and passing the operand segment

0 commit comments

Comments
 (0)