[all-commits] [llvm/llvm-project] bd1d17: [flang] Prevent a bad folding rewrite

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Sep 23 08:11:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd1d1701649c3d26e5b7ea788bb67f58f0779f47
      https://github.com/llvm/llvm-project/commit/bd1d1701649c3d26e5b7ea788bb67f58f0779f47
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M flang/lib/Evaluate/fold-implementation.h

  Log Message:
  -----------
  [flang] Prevent a bad folding rewrite

When a subexpression does not have both constant elements and
a constant shape, folding is rewriting it into a vector of its
elements.  This is of course wrong when the shape shows that
the result has rank greater than 1.

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




More information about the All-commits mailing list