Commit a68b179c by Michael Matz Committed by Michael Matz

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
parent f3dc41fe
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> 2005-04-29 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
......
...@@ -1269,7 +1269,8 @@ reload_cse_move2add (rtx first) ...@@ -1269,7 +1269,8 @@ reload_cse_move2add (rtx first)
{ {
enum machine_mode narrow_mode; enum machine_mode narrow_mode;
for (narrow_mode = GET_CLASS_NARROWEST_MODE (MODE_INT); 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)) narrow_mode = GET_MODE_WIDER_MODE (narrow_mode))
{ {
if (have_insn_for (STRICT_LOW_PART, narrow_mode) if (have_insn_for (STRICT_LOW_PART, narrow_mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment