re PR tree-optimization/92262 (ICE: verify_gimple failed (error: incorrect sharing...
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 30 Oct 2019 09:52:01 +0000 (10:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 30 Oct 2019 09:52:01 +0000 (10:52 +0100)
commit9f33e12137b0216052c230fb653b130828ad575d
treefe0fbc2360bda4a08182c72407ada5d6b688adaf
parentfd776d2834d40b6b49e1e2880d4cbde7f568ba29
re PR tree-optimization/92262 (ICE: verify_gimple failed (error: incorrect sharing of tree nodes))

PR tree-optimization/92262
* tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
ubase or cbase here.
(remove_unused_ivs): Unshare comp before using it.

* g++.dg/opt/pr92262.C: New test.

From-SVN: r277605
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr92262.C [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c