Commit f0c94be0 by Jim Wilson

(loop_iterations): Only use REG_EQUAL note value if it

is constant.

From-SVN: r7648
parent 68597413
...@@ -3160,7 +3160,11 @@ loop_iterations (loop_start, loop_end) ...@@ -3160,7 +3160,11 @@ loop_iterations (loop_start, loop_end)
{ {
rtx note = find_reg_note (insn, REG_EQUAL, NULL_RTX); rtx note = find_reg_note (insn, REG_EQUAL, NULL_RTX);
if (note && GET_CODE (XEXP (note, 0)) != EXPR_LIST) /* Only use the REG_EQUAL note if it is a constant.
Other things, divide in particular, will cause
problems later if we use them. */
if (note && GET_CODE (XEXP (note, 0)) != EXPR_LIST
&& CONSTANT_P (XEXP (note, 0)))
comparison_value = XEXP (note, 0); comparison_value = XEXP (note, 0);
} }
break; break;
......
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