mode-switching.c (create_pre_exit): Skip blockage insn.

* mode-switching.c (create_pre_exit): Skip blockage insn.

From-SVN: r122791
This commit is contained in:
Kaz Kojima 2007-03-10 05:04:10 +00:00
parent 9eeea7612d
commit 07288ab037
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
* mode-switching.c (create_pre_exit): Skip blockage insn.
2007-03-09 Diego Novillo <dnovillo@redhat.com>
* tree-pass.h (TODO_update_smt_usage): Remove.

View file

@ -259,6 +259,12 @@ create_pre_exit (int n_entities, int *entity_map, const int *num_modes)
last_insn = return_copy;
continue;
}
if (GET_CODE (PATTERN (return_copy)) == ASM_INPUT
&& strcmp (XSTR (PATTERN (return_copy), 0), "") == 0)
{
last_insn = return_copy;
continue;
}
/* If the return register is not (in its entirety)
likely spilled, the return copy might be
partially or completely optimized away. */