diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-04-13 09:16:18 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-06-17 04:14:05 -0400 |
commit | 22b5aff279b2d0e0c205b753f18f88fceb85df9c (patch) | |
tree | 595ab11e6634e6fad3b8a4bbe94d43ebceeffcac /gcc/ada/sem_util.adb | |
parent | 741826eff5855366c65d49123b899ea40fc0c443 (diff) | |
download | gcc-22b5aff279b2d0e0c205b753f18f88fceb85df9c.zip gcc-22b5aff279b2d0e0c205b753f18f88fceb85df9c.tar.gz gcc-22b5aff279b2d0e0c205b753f18f88fceb85df9c.tar.bz2 |
[Ada] Deal with second specific superflat case in Optimize_Length_Comparison
2020-06-17 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* exp_ch4.adb (Optimize_Length_Comparison): New local variable to
record whether this may be a dynamic superflat case.
(Is_Optimizable): Accept 0 as lower bound and set it in this case,
but return false if the operand is not a length too.
(Rewrite_For_Equal_Lengths): New procedure.
Optimize the comparison of two lengths in the superflat case when
the arrays have the same bounds.
Diffstat (limited to 'gcc/ada/sem_util.adb')
0 files changed, 0 insertions, 0 deletions