]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/99776 - relax condition on vector ctor element extract
authorRichard Biener <rguenther@suse.de>
Fri, 26 Mar 2021 08:50:03 +0000 (09:50 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 27 Apr 2021 06:23:08 +0000 (08:23 +0200)
commit7d6bb80931b429631f63e0fd27bee95f32eb57a9
treec93617ede29c78771bae7244355fc9d446100438
parent2cde2d620fc5ff60264ee825fd6eea457d7c51d9
tree-optimization/99776 - relax condition on vector ctor element extract

This relaxes the condition for the match.pd pattern doing vector ctor
element extracts to not require type identity but only size equality.
Since we vectorize pointer data as unsigned integer data such mismatches
have to be tolerated to optimize scalar code uses of vector results.

2021-03-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/99776
* match.pd (bit_field_ref (ctor)): Relax element extract
type compatibility checks.

* gcc.dg/tree-ssa/ssa-fre-91.c: New testcase.
gcc/match.pd
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-91.c [new file with mode: 0644]
This page took 0.068987 seconds and 6 git commands to generate.