Commit 8d22ad72 by Jeff Law

loop.c (verify_dominator): Properly handle ADDR_VEC and ADDR_DIFF_VEC insns that…

loop.c (verify_dominator): Properly handle ADDR_VEC and ADDR_DIFF_VEC insns that appear inside loops.

h
        * loop.c (verify_dominator): Properly handle ADDR_VEC and
        ADDR_DIFF_VEC insns that appear inside loops.

From-SVN: r27760
parent 2f47f8d0
...@@ -2564,14 +2564,21 @@ verify_dominator (loop_number) ...@@ -2564,14 +2564,21 @@ verify_dominator (loop_number)
&& GET_CODE (PATTERN (insn)) != RETURN) && GET_CODE (PATTERN (insn)) != RETURN)
{ {
rtx label = JUMP_LABEL (insn); rtx label = JUMP_LABEL (insn);
int label_luid = INSN_LUID (label); int label_luid;
if (! condjump_p (insn) /* If it is not a jump we can easily understand or for
&& ! condjump_in_parallel_p (insn)) which we do not have jump target information in the JUMP_LABEL
field (consider ADDR_VEC and ADDR_DIFF_VEC insns), then clear
LOOP_NUMBER_CONT_DOMINATOR. */
if ((! condjump_p (insn)
&& ! condjump_in_parallel_p (insn))
|| label == NULL_RTX)
{ {
loop_number_cont_dominator[loop_number] = NULL_RTX; loop_number_cont_dominator[loop_number] = NULL_RTX;
return; return;
} }
label_luid = INSN_LUID (label);
if (label_luid < INSN_LUID (loop_number_loop_cont[loop_number]) if (label_luid < INSN_LUID (loop_number_loop_cont[loop_number])
&& (label_luid && (label_luid
> INSN_LUID (loop_number_cont_dominator[loop_number]))) > INSN_LUID (loop_number_cont_dominator[loop_number])))
......
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