diff options
author | Tamar Christina <tamar.christina@arm.com> | 2021-11-02 13:26:36 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2021-11-02 13:28:15 +0000 |
commit | 6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1 (patch) | |
tree | 5b5476a458e43186aaad88bf95cd6a07c99636db /gcc/tree-ssa-structalias.c | |
parent | 268b43d2592c196ea101946d7063156a914b2713 (diff) | |
download | gcc-6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1.zip gcc-6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1.tar.gz gcc-6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1.tar.bz2 |
middle-end: Fix PR103007, add missing check on complex fms detection.
The complex FMS detection is missing a check on if the nodes of the VEC_PERM
has the amount of children we expect before it recurses.
This check is there on MUL and FMA but was missing for FMS, due to this the
compiler goes on further than it should and hits an assert.
gcc/ChangeLog:
PR tree-optimization/103007
* tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
check.
gcc/testsuite/ChangeLog:
PR tree-optimization/103007
* g++.dg/pr103007.C: New test.
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
0 files changed, 0 insertions, 0 deletions