diff options
author | Richard Biener <rguenther@suse.de> | 2023-06-23 10:20:45 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-06-23 11:22:38 +0200 |
commit | 1fe09b90f856ba27c3e44dda156b28adb5d4d8ea (patch) | |
tree | 0afd3ae3e2fc8eea675a608a45e397b99cef2a10 /gcc/tree-vect-patterns.cc | |
parent | 6b32400e19a702137fd11571d199f725add0daf6 (diff) | |
download | gcc-1fe09b90f856ba27c3e44dda156b28adb5d4d8ea.zip gcc-1fe09b90f856ba27c3e44dda156b28adb5d4d8ea.tar.gz gcc-1fe09b90f856ba27c3e44dda156b28adb5d4d8ea.tar.bz2 |
Use element_precision for match.pd arith conversion optimization
The simplification (outertype)((innertype0)a+(innertype1)b) to
((newtype)a+(newtype)b) ends up using TYPE_PRECISION to check
whether it can elide a conversion but in some paths there can
be VECTOR_TYPEs where this instead compares the number of lanes.
The following fixes the missed optimizations and uses
element_precision in those places.
* match.pd ((outertype)((innertype0)a+(innertype1)b)
-> ((newtype)a+(newtype)b)): Use element_precision
where appropriate.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions