[flang-commits] [flang] [mlir] [MLIR][OpenMP] Changes to function-filtering pass (PR #71850)

Akash Banerjee via flang-commits flang-commits at lists.llvm.org
Fri Nov 10 07:57:21 PST 2023


================
@@ -2496,8 +2496,6 @@ convertDeclareTargetAttr(Operation *op, mlir::omp::DeclareTargetAttr attribute,
       if (declareType == omp::DeclareTargetDeviceType::host) {
         llvm::Function *llvmFunc =
             moduleTranslation.lookupFunction(funcOp.getName());
-        llvmFunc->replaceAllUsesWith(
----------------
TIFitis wrote:

In the functionFiltering, all calls to the host functions are removed regardless of whether they have a target region in them. As such the above test works as is.

https://github.com/llvm/llvm-project/pull/71850


More information about the flang-commits mailing list