Similarly to LBOUND((x)) in https://reviews.llvm.org/D123838 - fix UBOUND((x))
folding for constant arrays to return shape instead of recurse scan.
Depends on D123520
Paths
| Differential D123944
[flang] Fix UBOUND() constant folding for parentheses expr ClosedPublic Authored by FruitClover on Apr 18 2022, 7:50 AM.
Details Summary Similarly to LBOUND((x)) in https://reviews.llvm.org/D123838 - fix UBOUND((x)) Depends on D123520
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 18 2022, 7:50 AM FruitClover changed the visibility from "FruitClover (Mike K)" to "Public (No Login Required)".Apr 18 2022, 8:17 AM Comment Actions I think I would have slightly favored a version that dealt with this in GetConstantArrayBoundHelper without defining a new expression visitor, but I am also OK with this solution. Thanks for the fix. This revision is now accepted and ready to land.Apr 22 2022, 2:59 AM Comment Actions
Sure, ok for me, will update with slightly shorter version, much appreciated for the comments. Comment Actions
Sorry for ping, but i've update code after your approve mark, could you take a look one more time? Closed by commit rG92e22c97e9ef: [flang] Fix UBOUND() constant folding for parentheses expr (authored by FruitClover). · Explain WhyApr 28 2022, 2:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425733 flang/lib/Evaluate/fold-integer.cpp
flang/test/Evaluate/folding08.f90
|