]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/50205 (ICE: in code_motion_path_driver, at sel-sched.c:6581...
authorAlexander Monakov <amonakov@ispras.ru>
Tue, 18 Oct 2011 12:36:16 +0000 (16:36 +0400)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 18 Oct 2011 12:36:16 +0000 (16:36 +0400)
commitea3f6aa86222070d219f0c70a60c2eda779ba306
treed81160bdc6decd0db9c1c8ba11fe91db4af9dcda
parent748c5114543cb803cdb494105510217046d20513
re PR rtl-optimization/50205 (ICE: in code_motion_path_driver, at sel-sched.c:6581 with -fselective-scheduling2 and custom flags)

PR rtl-optimization/50205
* sel-sched.c (count_occurrences_1): Simplify on the assumption that
p->x is a register.  Forbid substitution when the same register is
found in a different mode.
(count_occurrences_equiv): Assert that 'what' is a register.

* gcc.dg/pr50205.c: New.

From-SVN: r180135
gcc/ChangeLog
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr50205.c [new file with mode: 0644]