]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/104511 - avoid FP to DFP conversion for VEC_PACK_TRUNC
authorRichard Biener <rguenther@suse.de>
Mon, 14 Feb 2022 09:09:10 +0000 (10:09 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 16 Mar 2022 07:16:55 +0000 (08:16 +0100)
commitd261855943584e25c43fc59dfbc75e50e24a66b8
tree889c32d87003660c8dcdcba38122b41aea0d9fb7
parent070bb453f1c0fa47a62a7b0cdeed397e889600f6
tree-optimization/104511 - avoid FP to DFP conversion for VEC_PACK_TRUNC

This avoids forwprop from matching DFP <-> FP vector conversions
using VEC_[UN]PACK{_TRUNC,_LO,_HI}.  Maybe DFP vectors shouldn't be
a thing, but they appearantly are.  Re-using CONVERT/NOP_EXPR for
DFP <-> FP conversions was probably a mistake.

2022-02-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/104511
* tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
touching DFP <-> FP conversions.

* gcc.dg/pr104511.c: New testcase.

(cherry picked from commit f320197c8b495324dc6997a99d53e7f45ecf5840)
gcc/testsuite/gcc.dg/pr104511.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c