diff options
author | Richard Biener <rguenther@suse.de> | 2023-01-13 08:37:24 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-01-13 09:40:01 +0100 |
commit | adbee4a197c7b735a3dd58cfac8933f70069f71d (patch) | |
tree | 5c1fd064ecb4c68a6ba19092c0ba28e26ccef744 /gcc/gimple-array-bounds.cc | |
parent | 9b6c624820050cd5e11b2fbd9c997f94b691295a (diff) | |
download | gcc-adbee4a197c7b735a3dd58cfac8933f70069f71d.zip gcc-adbee4a197c7b735a3dd58cfac8933f70069f71d.tar.gz gcc-adbee4a197c7b735a3dd58cfac8933f70069f71d.tar.bz2 |
tree-optimization/108387 - ICE with VN handling of x << C as x * (1<<C)
The following fixes unexpected simplification of x << C as
x * (1<<C) to a constant.
PR tree-optimization/108387
* tree-ssa-sccvn.cc (visit_nary_op): Check for SSA_NAME
value before inserting expression into the tables.
* gcc.dg/pr108387.c: New testcase.
Diffstat (limited to 'gcc/gimple-array-bounds.cc')
0 files changed, 0 insertions, 0 deletions