[all-commits] [llvm/llvm-project] cccf4d: [flang] Skip OPTIONAL arguments in LoopVersioning.

Slava Zakharin via All-commits all-commits at lists.llvm.org
Fri Aug 25 08:34:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cccf4d6e4a331487590f1d2c1cd3b8ef3b66fbd9
      https://github.com/llvm/llvm-project/commit/cccf4d6e4a331487590f1d2c1cd3b8ef3b66fbd9
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    M flang/lib/Optimizer/Transforms/LoopVersioning.cpp
    M flang/test/Transforms/loop-versioning.fir

  Log Message:
  -----------
  [flang] Skip OPTIONAL arguments in LoopVersioning.

This patch fixes multiple tests failing with segfault due to accessing
absent argument box before the loop versioning check.
The absent arguments might be treated as contiguous for the purpose
of loop versioning, but this is not done in this patch.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list