PR tree-optimization/94574 - aarch64: ICE during GIMPLE pass:ccp
authorYang Yang <yangyang305@huawei.com>
Tue, 14 Apr 2020 19:42:23 +0000 (19:42 +0000)
committerRichard Biener <rguenther@suse.de>
Tue, 14 Apr 2020 14:02:31 +0000 (16:02 +0200)
commitf65cecabc32fe12b024253502af953e657e1a878
treed80cba380e95cde4d8d064c1a059037dc617adea
parent438ffa2a8fac925b1bee8862fa15bc5380c0dffd
PR tree-optimization/94574 - aarch64: ICE during GIMPLE pass:ccp

In this PR the testcase ICEs because a BIT_INSERT_EXPR whose replaced bits are
not fully inside the container is generated. A size check is added to avoid
this kind of ICE.

gcc/ChangeLog:

PR tree-optimization/94574
* tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
whether a vector-insert is rewritable using a BIT_INSERT_EXPR.

gcc/testsuite/ChangeLog:

PR tree-optimization/94574
* gcc.dg/pr94574.c: New test.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr94574.c [new file with mode: 0644]
gcc/tree-ssa.c