[all-commits] [llvm/llvm-project] 036549: [flang] Inline array size call when dim is compile...
Razvan Lupusoru via All-commits
all-commits at lists.llvm.org
Thu May 11 14:51:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 036549fc6c7cb9ecddd82c1401a2b50882a219f7
https://github.com/llvm/llvm-project/commit/036549fc6c7cb9ecddd82c1401a2b50882a219f7
Author: Razvan Lupusoru <rlupusoru at nvidia.com>
Date: 2023-05-11 (Thu, 11 May 2023)
Changed paths:
M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
M flang/test/Lower/Intrinsics/ubound.f90
Log Message:
-----------
[flang] Inline array size call when dim is compile time constant
Instead of calling _FortranASizeDim, we can instead load extent
directly from descriptor. Add this support for cases where dim
is a known constant at compile time.
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D150385
More information about the All-commits
mailing list