[all-commits] [llvm/llvm-project] 39ee23: [flang] Set LBOUND() folding for (x) expression as...

FruitClover via All-commits all-commits at lists.llvm.org
Wed Apr 20 10:06:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39ee23ed5ab3f411b6945a3acbbdf22cd8a0a6cb
  Author: Mike Kashkarov <fruitclover at gmail.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/test/Evaluate/folding08.f90
    M flang/test/Evaluate/folding16.f90

  Log Message:
  [flang] Set LBOUND() folding for (x) expression as ones

Set LBOUND() constant folding for parentheses expr. as ones

Array bounds should not propagate throught omitted bounds specifications or
temporary variables - fix constant folding in case of Parentheses<T> expression
by explicitly returning array of ones (or scalar in case of DIM=).

Add set of tests for (x) bounds checks (w/ and w/o 'parameter' arrays)

Reviewed By: jeanPerier

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

More information about the All-commits mailing list