tree-optimization/95049 - fix not terminating RPO VN iteration
authorRichard Biener <rguenther@suse.de>
Mon, 11 May 2020 11:40:37 +0000 (13:40 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 11 May 2020 15:56:31 +0000 (17:56 +0200)
commit84f4954c38228e4cb3e6f0b5471883e6c2523631
tree364d1acb8ce08b1b24fed30f89e6bc8fc716b75d
parentd8bd9d32e8b3e7c2a1bb6fc920efe6691fb5e8b6
tree-optimization/95049 - fix not terminating RPO VN iteration

This rejects lattice changes from one constant to another.

2020-05-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95049
* tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
between different constants.

* gcc.dg/torture/pr95049.c: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr95049.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c