[clang] [OpenMP] Tile/stripe followed by reverse (PR #222401)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 27 07:02:42 PDT 2026


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

----------------
alexey-bataev wrote:

```suggestion
      // tile/stripe regenerate intermediate loop bodies and drop the helper
      // statements reverse injects into the body of the loop it transforms;
      // compose only when the reversed loop is the innermost one.
      if (RelaxNestForPeeledTransformation && isa<OMPReverseDirective>(Dir) &&
          Cnt + 1 < NumLoops)
        break;
      OnTransformationCallback(Dir);
```

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


More information about the cfe-commits mailing list