aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-01-16 15:02:51 -0500
committerAndrew MacLeod <amacleod@redhat.com>2023-01-27 09:32:42 -0500
commitf884c133dde519b4d8fc89f2f151711d1b0eb368 (patch)
tree632798a395c88d7716eb1014daf93ae61afce005 /gcc/tree-vectorizer.h
parentec5e99e95954fd629283a9c9572193dd95471fea (diff)
downloadgcc-f884c133dde519b4d8fc89f2f151711d1b0eb368.zip
gcc-f884c133dde519b4d8fc89f2f151711d1b0eb368.tar.gz
gcc-f884c133dde519b4d8fc89f2f151711d1b0eb368.tar.bz2
Correctly detect shifts out of range
get_shift_range was incorrectly communicating that it couldn't calculate a range when the shift values was always out fo range. Fix this and alwasy return [0, 0] when the shift value is always out of range. PR tree-optimization/108306 gcc/ * range-op.cc (operator_lshift::fold_range): Return [0, 0] not varying for shifts that are always out of void range. (operator_rshift::fold_range): Return [0, 0] not varying for shifts that are always out of void range. gcc/testsuite/ * gcc.dg/pr108306.c: New.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions