Commit ee668edc by Richard Stallman

*** empty log message ***

From-SVN: r994
parent 01e2750c
...@@ -1283,6 +1283,22 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -1283,6 +1283,22 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
clobbered by the function. */ clobbered by the function. */
if (GET_CODE (XVECEXP (body, 0, 0)) == CALL_INSN) if (GET_CODE (XVECEXP (body, 0, 0)) == CALL_INSN)
CC_STATUS_INIT; CC_STATUS_INIT;
/* Following a conditional branch sequence, we have a new basic
block. */
if (profile_block_flag)
{
rtx insn = XVECEXP (body, 0, 0);
rtx body = PATTERN (insn);
if ((GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == SET
&& GET_CODE (SET_SRC (body)) != LABEL_REF)
|| (GET_CODE (insn) == JUMP_INSN
&& GET_CODE (body) == PARALLEL
&& GET_CODE (XVECEXP (body, 0, 0)) == SET
&& GET_CODE (SET_SRC (XVECEXP (body, 0, 0))) != LABEL_REF))
new_block = 1;
}
break; break;
} }
...@@ -1333,12 +1349,15 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -1333,12 +1349,15 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
} }
#endif #endif
/* Following a conditional branch, we have a new basic block. */ /* Following a conditional branch, we have a new basic block.
if ((GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == SET But if we are inside a sequence, the new block starts after the
&& GET_CODE (SET_SRC (body)) != LABEL_REF) last insn of the sequence. */
|| (GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == PARALLEL if (profile_block_flag && final_sequence == 0
&& GET_CODE (XVECEXP (body, 0, 0)) == SET && ((GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == SET
&& GET_CODE (SET_SRC (XVECEXP (body, 0, 0))) != LABEL_REF)) && GET_CODE (SET_SRC (body)) != LABEL_REF)
|| (GET_CODE (insn) == JUMP_INSN && GET_CODE (body) == PARALLEL
&& GET_CODE (XVECEXP (body, 0, 0)) == SET
&& GET_CODE (SET_SRC (XVECEXP (body, 0, 0))) != LABEL_REF)))
new_block = 1; new_block = 1;
#ifndef STACK_REGS #ifndef STACK_REGS
......
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