[all-commits] [llvm/llvm-project] 4f1eec: [flang] Fix crash in folding of DPROD() with non-s...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 1 09:39:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f1eec1fc643d3a6b7ff32e13fa49b3418e29264
      https://github.com/llvm/llvm-project/commit/4f1eec1fc643d3a6b7ff32e13fa49b3418e29264
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M flang/lib/Evaluate/fold-real.cpp
    A flang/test/Evaluate/fold-dprod.f90

  Log Message:
  -----------
  [flang] Fix crash in folding of DPROD() with non-scalar arguments

DPROD(x,y) is defined as DBLE(x)*DBLE(y) and that's exactly how
the implementation of its rewriting and possible folding should
be implemented, instead of the current code that only works when
both arguments are scalar and crashes otherwise.

Fixes https://github.com/llvm/llvm-project/issues/63991.

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




More information about the All-commits mailing list