]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/109491 - ICE in expressions_equal_p
authorRichard Biener <rguenther@suse.de>
Thu, 13 Apr 2023 12:09:30 +0000 (14:09 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 17 Apr 2023 09:28:44 +0000 (11:28 +0200)
commitbb400f9916beab1a650d59c73672ef48aaf71b11
treebb8b5deab1b353789a48f8172b1254bcdacc4639
parent6872f055d7d4fd36b804bdd9b5a8a128b01aacbc
tree-optimization/109491 - ICE in expressions_equal_p

At some point I elided the NULL pointer check in expressions_equal_p
because it shouldn't be necessary not realizing that for example
TARGET_MEM_REF has optional operands we cannot substitute with
something non-NULL with the same semantics.  The following does the
simple thing and restore the check removed in r11-4982.

PR tree-optimization/109491
* tree-ssa-sccvn.c (expressions_equal_p): Restore the
NULL operands test.

(cherry picked from commit a37783de23c067d6a26374ff29c014e49604035c)
gcc/tree-ssa-sccvn.c
This page took 0.059023 seconds and 6 git commands to generate.