]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/105965 - add missing v_c_e <{ el }> simplification
authorRichard Biener <rguenther@suse.de>
Tue, 14 Jun 2022 08:59:49 +0000 (10:59 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 14 Jun 2022 10:52:49 +0000 (12:52 +0200)
commit90467f0ad649d0817f9e034596a0fb85605b55af
tree3ef84a7938718fb734f6a7e3b10ff82c19bf9b55
parentbe6676286a0fad2d7fdb6a258befe9deb826690e
middle-end/105965 - add missing v_c_e <{ el }> simplification

When we got the simplification of bit-field-ref to view-convert
we lost the ability to detect FMAs since we cannot look through

  _1 = {_10};
  _11 = VIEW_CONVERT_EXPR<float>(_1);

the following amends the (view_convert CONSTRUCTOR) pattern
to handle this case.

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

PR middle-end/105965
* match.pd (view_convert CONSTRUCTOR): Handle single-element
CTOR case.

* gcc.target/i386/pr105965.c: New testcase.
gcc/match.pd
gcc/testsuite/gcc.target/i386/pr105965.c [new file with mode: 0644]