[all-commits] [llvm/llvm-project] d8b4ea: [flang] Fix UBOUND() folding for constant arrays
FruitClover via All-commits
all-commits at lists.llvm.org
Wed Apr 27 09:18:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8b4ea486a5c152ba1ceb656a3d6638defe40fe1
https://github.com/llvm/llvm-project/commit/d8b4ea486a5c152ba1ceb656a3d6638defe40fe1
Author: Mike Kashkarov <fruitclover at gmail.com>
Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths:
M flang/include/flang/Evaluate/constant.h
M flang/lib/Evaluate/constant.cpp
M flang/lib/Evaluate/fold-integer.cpp
M flang/test/Evaluate/folding08.f90
Log Message:
-----------
[flang] Fix UBOUND() folding for constant arrays
Similarly to LBOUND in https://reviews.llvm.org/D123237, fix UBOUND() folding
for constant arrays (for both w/ and w/o DIM=): convert
GetConstantArrayLboundHelper into common helper class for both lower/upper
bounds.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D123520
More information about the All-commits
mailing list