Avoid redundant operations in `fortran_array_walker'
authorMaciej W. Rozycki <macro@embecosm.com>
Fri, 17 Dec 2021 15:01:32 +0000 (15:01 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Fri, 17 Dec 2021 15:01:32 +0000 (15:01 +0000)
commit8294c9025a901ad055c979f80815465765836ae1
tree65a359308adb1e769184a6f165c4c5fd8a7a12fa
parentc12d6b570d929eabbe56160baaf85348b0fdf521
Avoid redundant operations in `fortran_array_walker'

Move inner dimension's element type determination outside the respective
loops in `fortran_array_walker'.  The operation is exactly the same with
each iteration, so there is no point in redoing it for each element and
while a smart compiler might be able to move it outside the loop it is
regardless a bad coding style.  No functional change.
gdb/f-array-walker.h