aboutsummaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-09-17 23:41:36 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-17 23:41:36 +0000
commitc9b69ba2588ce02e591c0a7af0a7ae901f66d8a5 (patch)
tree8faead7c948ef1e160fbfaebf4e7d1cfab4b0b37 /gcc/df-scan.c
parenta765d68e7584986e90b901e453e18c3aa34f9560 (diff)
downloadgcc-c9b69ba2588ce02e591c0a7af0a7ae901f66d8a5.zip
gcc-c9b69ba2588ce02e591c0a7af0a7ae901f66d8a5.tar.gz
gcc-c9b69ba2588ce02e591c0a7af0a7ae901f66d8a5.tar.bz2
df-scan.c (df_notes_rescan): Do nothing if the instruction does not yet have a basic block.
gcc/ * df-scan.c (df_notes_rescan): Do nothing if the instruction does not yet have a basic block. * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN. From-SVN: r128563
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 6c2c6fa..a1f71b0 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -2004,6 +2004,10 @@ df_notes_rescan (rtx insn)
if (df->changeable_flags & DF_NO_INSN_RESCAN)
return;
+ /* Do nothing if the insn hasn't been emitted yet. */
+ if (!BLOCK_FOR_INSN (insn))
+ return;
+
df_grow_bb_info (df_scan);
df_grow_reg_info ();