aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2024-02-27 12:11:47 -0800
committerMarc Poulhiès <poulhies@adacore.com>2024-05-16 10:49:34 +0200
commit584ade0b82339d95463bc91c9fdd77579b16426a (patch)
treecab2746a663a6f4cea3010e6c6db374bbe409caa /gcc/tree-vectorizer.h
parent9ec20f1f84ad19bb8e2020657ee4c851ba5cd7b0 (diff)
downloadgcc-584ade0b82339d95463bc91c9fdd77579b16426a.zip
gcc-584ade0b82339d95463bc91c9fdd77579b16426a.tar.gz
gcc-584ade0b82339d95463bc91c9fdd77579b16426a.tar.bz2
ada: Redundant validity checks
In some cases with validity checking enabled via the -gnatVa option, the compiler generates validity checks that can (obviously) never fail. These include validity checks for (some) static expressions, and consecutive identical checks generated for a single read of an object. gcc/ada/ * checks.adb (Expr_Known_Valid): Return True for a static expression. * exp_util.adb (Adjust_Condition): No validity check needed for a condition if it is an expression for which a validity check has already been generated.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions