re PR rtl-optimization/42294 (ICE in code_motion_path_driver for 416.gamess)
authorAndrey Belevantsev <abel@gcc.gnu.org>
Thu, 14 Jan 2010 10:16:01 +0000 (13:16 +0300)
committerAndrey Belevantsev <abel@gcc.gnu.org>
Thu, 14 Jan 2010 10:16:01 +0000 (13:16 +0300)
commit0666ff4e33e39bd94ea8f34bf4ef1af1a004bd53
treeb6b0f57b7fe8c4e2385e76f5fba5877465ba91fe
parent5f8d50239ba11866a5e0251975142fee6632ab2f
re PR rtl-optimization/42294 (ICE in code_motion_path_driver for 416.gamess)

        PR rtl-optimization/42294
        * sel-sched.c (try_replace_dest_reg): When chosen register
        and original register is the same, do not bail out early, but
        still check all original insns for validity of replacing destination
        register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
        in this case.

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