aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-07-06 16:26:50 +0200
committerRichard Biener <rguenther@suse.de>2020-07-06 16:30:18 +0200
commitdccbf1e2a6e544f71b4a5795f0c79015db019fc3 (patch)
tree2cfd3cde5c4d1f6dc40a8db09e7925919ca18185 /gcc/fortran/resolve.c
parenta9e48b0d475407bbc79be88c6d086a9d837d4ca3 (diff)
downloadgcc-dccbf1e2a6e544f71b4a5795f0c79015db019fc3.zip
gcc-dccbf1e2a6e544f71b4a5795f0c79015db019fc3.tar.gz
gcc-dccbf1e2a6e544f71b4a5795f0c79015db019fc3.tar.bz2
tree-optimization/96075 - fix bogus misalignment calculation
This fixes bogus misalignment calculation for negative steps since an assertion a previous comment indicated no longer holds: /* DR_STEP(dr) is the same as -TYPE_SIZE of the scalar type, otherwise we wouldn't be here. */ Thus the following replaces DR_STEP by -TYPE_SIZE. 2020-07-06 Richard Biener <rguenther@suse.de> PR tree-optimization/96075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use TYPE_SIZE_UNIT of the vector component type instead of DR_STEP for the misalignment calculation for negative step. * gcc.dg/vect/slp-46.c: New testcase.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions