]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/102183 - sccvn: fix result compare in vn_nary_op_insert_into
authorDi Zhao <dizhao@os.amperecomputing.com>
Wed, 8 Sep 2021 07:34:27 +0000 (15:34 +0800)
committerDi Zhao <dizhao@os.amperecomputing.com>
Wed, 8 Sep 2021 10:47:18 +0000 (18:47 +0800)
commit7285f394558980d1c7211f83c62b692af3c094eb
tree9c2cc6e012c71253380b95bd2932e8c502162046
parent87d55da7d78f64bfce5e8217379d46bdc9ab287b
tree-optimization/102183 - sccvn: fix result compare in vn_nary_op_insert_into

If the first predicate value is different and copied, the comparison will then
be between val->result and the copied one. That can cause inserting extra
vn_pvals.

gcc/ChangeLog:

* tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
gcc/tree-ssa-sccvn.c