diff options
author | Richard Biener <rguenther@suse.de> | 2022-02-28 08:36:25 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-02-28 10:34:25 +0100 |
commit | 37b583b9d7719f663656ce65ac822c11471fb540 (patch) | |
tree | 688009606fb37efc520d70c7b49e75c4154c1c64 /gcc/cfgexpand.cc | |
parent | f485b0ed7d06482d2f212ff0d9f5519a4f2c9a15 (diff) | |
download | gcc-37b583b9d7719f663656ce65ac822c11471fb540.zip gcc-37b583b9d7719f663656ce65ac822c11471fb540.tar.gz gcc-37b583b9d7719f663656ce65ac822c11471fb540.tar.bz2 |
tree-optimization/104700 - adjust constant handling in PRE
The following refactors find_or_generate_expression to more properly
handle constant valued SSA names thereby simplifying the code and
avoiding ICEing after the last change to NARY processing.
2022-02-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/104700
* tree-ssa-pre.cc (get_or_alloc_expr_for): Remove and inline
into ...
(find_or_generate_expression): ... here, simplifying code.
* gcc.dg/pr104700-2.c: New testcase.
* gcc.dg/torture/pr104700-1.c: Likewise.
Diffstat (limited to 'gcc/cfgexpand.cc')
0 files changed, 0 insertions, 0 deletions