diff --git a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp index f31feda9f595..3d98fa44ab7f 100644 --- a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp +++ b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp @@ -2728,7 +2728,6 @@ mlir::Value IntrinsicLibrary::genAtomicOr(mlir::Type resultType, mlir::Value IntrinsicLibrary::genAtomicCas(mlir::Type resultType, llvm::ArrayRef args) { assert(args.size() == 3); - assert(args[1].getType() == args[2].getType()); auto successOrdering = mlir::LLVM::AtomicOrdering::acq_rel; auto failureOrdering = mlir::LLVM::AtomicOrdering::monotonic; auto llvmPtrTy = mlir::LLVM::LLVMPointerType::get(resultType.getContext()); diff --git a/flang/lib/Optimizer/CodeGen/CodeGen.cpp b/flang/lib/Optimizer/CodeGen/CodeGen.cpp index e6050f93d505..aaefe675730e 100644 --- a/flang/lib/Optimizer/CodeGen/CodeGen.cpp +++ b/flang/lib/Optimizer/CodeGen/CodeGen.cpp @@ -293,12 +293,6 @@ struct AllocaOpConversion : public fir::FIROpConversion { rewriter.setInsertionPointAfter(size.getDefiningOp()); } - if (auto dataAttr = alloc->getAttrOfType( - cuf::getDataAttrName())) { - if (dataAttr.getValue() == cuf::DataAttribute::Shared) - allocaAs = 3; - } - // NOTE: we used to pass alloc->getAttrs() in the builder for non opaque // pointers! Only propagate pinned and bindc_name to help debugging, but // this should have no functional purpose (and passing the operand segment