diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-07-08 12:58:13 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-07-08 12:58:13 +0100 |
commit | 2e9ef3929b0305235b968c431c8d7fec92885101 (patch) | |
tree | 38caf57f97ef9a0ec0d60fb4795d1ab0e4aec298 /gcc/ada/debug.adb | |
parent | 298b0db76dfcc82427d987fbbd239afcb0c3dbfd (diff) | |
download | gcc-2e9ef3929b0305235b968c431c8d7fec92885101.zip gcc-2e9ef3929b0305235b968c431c8d7fec92885101.tar.gz gcc-2e9ef3929b0305235b968c431c8d7fec92885101.tar.bz2 |
vect: Remove always-true condition
vectorizable_reduction had code guarded by:
if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_reduction_def
|| STMT_VINFO_DEF_TYPE (stmt_info) == vect_double_reduction_def)
But that's always true after:
if (STMT_VINFO_DEF_TYPE (stmt_info) != vect_reduction_def
&& STMT_VINFO_DEF_TYPE (stmt_info) != vect_double_reduction_def
&& STMT_VINFO_DEF_TYPE (stmt_info) != vect_nested_cycle)
return false;
if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_nested_cycle)
{
…
return true;
}
(I wasn't sure at first how the empty “else” for the first “if” above
was supposed to work.)
gcc/
* tree-vect-loop.c (vectorizable_reduction): Remove always-true
if condition.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions