[all-commits] [llvm/llvm-project] a716ac: Add loop-versioning pass to improve unit-stride

Mats Petersson via All-commits all-commits at lists.llvm.org
Tue Apr 18 01:53:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a716ace13dca3adc81885670d0f8ff14e866ce97
      https://github.com/llvm/llvm-project/commit/a716ace13dca3adc81885670d0f8ff14e866ce97
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.h
    M flang/include/flang/Optimizer/Transforms/Passes.td
    M flang/include/flang/Tools/CLOptions.inc
    M flang/lib/Optimizer/Transforms/CMakeLists.txt
    A flang/lib/Optimizer/Transforms/LoopVersioning.cpp
    A flang/test/Transforms/loop-versioning.fir

  Log Message:
  -----------
  Add loop-versioning pass to improve unit-stride

Introduce conditional code to identify stride of "one element", and simplify the array accesses for that case.

This allows better loop performance in various benchmarks.

Reviewed By: tblah, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D141306




More information about the All-commits mailing list