[Mlir-commits] [flang] [mlir] [openmp] [MLIR][OpenMP] Add scan reduction lowering to llvm (PR #167031)

Sergio Afonso llvmlistbot at llvm.org
Tue Nov 25 07:21:57 PST 2025


================

----------------
skatrak wrote:

Considering that `scan` only results in two loops, I think using a vector here is misleading. I'd suggest instead to add an optional `CanonicalLoopInfo` to represent the scan loop. If both loop infos are set, the first would represent the input phase:
```suggestion
  llvm::CanonicalLoopInfo *loopInfo = nullptr, *scanLoopInfo = nullptr;
```

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


More information about the Mlir-commits mailing list