re PR rtl-optimization/21144 (Apparent infinite loop in reload)

PR rtl-optimization/21144
        * postreload.c (reload_cse_move2add): Check for VOIDmode.

From-SVN: r99008
This commit is contained in:
Michael Matz 2005-04-29 18:39:22 +00:00 committed by Michael Matz
parent f3dc41fe8e
commit a68b179c86
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-29 Michael Matz <matz@suse.de>
PR rtl-optimization/21144
* postreload.c (reload_cse_move2add): Check for VOIDmode.
2005-04-29 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable

View File

@ -1269,7 +1269,8 @@ reload_cse_move2add (rtx first)
{
enum machine_mode narrow_mode;
for (narrow_mode = GET_CLASS_NARROWEST_MODE (MODE_INT);
narrow_mode != GET_MODE (reg);
narrow_mode != VOIDmode
&& narrow_mode != GET_MODE (reg);
narrow_mode = GET_MODE_WIDER_MODE (narrow_mode))
{
if (have_insn_for (STRICT_LOW_PART, narrow_mode)