mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 23:51:08 +08:00
(update_flow_info): When add REG_DEAD notes for dest of
last insn, add check for global_regs. From-SVN: r13318
This commit is contained in:
parent
0a49cbd463
commit
a2f2ce96f8
@ -4629,6 +4629,10 @@ update_flow_info (notes, first, last, orig_insn)
|
||||
dest = XEXP (dest, 0);
|
||||
|
||||
if (GET_CODE (dest) == REG
|
||||
/* Global registers are always live, so the code below does not
|
||||
apply to them. */
|
||||
&& (REGNO (dest) >= FIRST_PSEUDO_REGISTER
|
||||
|| ! global_regs[REGNO (dest)])
|
||||
&& ! reg_overlap_mentioned_p (dest, SET_SRC (set)))
|
||||
{
|
||||
for (insn = PREV_INSN (last); ; insn = PREV_INSN (insn))
|
||||
|
Loading…
x
Reference in New Issue
Block a user