]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111128 - fix shift pattern recog
authorRichard Biener <rguenther@suse.de>
Thu, 24 Aug 2023 08:00:20 +0000 (10:00 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 24 Aug 2023 08:59:16 +0000 (10:59 +0200)
commit7b67cab154d4b5ec2a6bb62755da31cefbe63536
tree225e99abe866aca6d0c8082a87a9dd210d10bc07
parent308e716266787f84ba4a47546317dae83be8901c
tree-optimization/111128 - fix shift pattern recog

The following fixes placement of shift operand sanitization with
MIN when the original shift operand was external but the actual
one is not.

PR tree-optimization/111128
* tree-vect-patterns.cc (vect_recog_over_widening_pattern):
Emit external shift operand inline if we promoted it with
another pattern stmt.

* gcc.dg/torture/pr111128.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr111128.c [new file with mode: 0644]
gcc/tree-vect-patterns.cc