(loop_iterations): Only use REG_EQUAL note value if it
is constant. From-SVN: r7648
This commit is contained in:
parent
6859741315
commit
f0c94be0eb
@ -3160,7 +3160,11 @@ loop_iterations (loop_start, loop_end)
|
||||
{
|
||||
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);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user