[llvm-branch-commits] [flang] [flang][CodeGen] Run PreCGRewrite on omp reduction declare ops (PR #84954)
    Valentin Clement バレンタイン クレメン via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Wed Mar 13 10:53:07 PDT 2024
    
    
  
================
@@ -319,6 +320,10 @@ class CodeGenRewrite : public fir::impl::CodeGenRewriteBase<CodeGenRewrite> {
       runOn(func, func.getBody());
     for (auto global : mod.getOps<fir::GlobalOp>())
       runOn(global, global.getRegion());
+    for (auto omp : mod.getOps<mlir::omp::ReductionDeclareOp>()) {
----------------
clementval wrote:
Wouldn't applying the patterns on the module directly work for all operation in it? So we could get rid of call to runOn. 
https://github.com/llvm/llvm-project/pull/84954
    
    
More information about the llvm-branch-commits
mailing list