diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-12 20:50:08 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-12 20:50:08 +0000 |
commit | 78f29aa30d9fe1a73e6fa961dafe1871f508f061 (patch) | |
tree | 307a8f37393b25c5868e66d16067530b6f501427 /gcc/tree-outof-ssa.c | |
parent | bfe827ee5032f7442f228fdc6a77397895ee4713 (diff) | |
download | gcc-78f29aa30d9fe1a73e6fa961dafe1871f508f061.tar.gz |
PR 17892.
OKed by Roger Sayle.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-outof-ssa.c')
-rw-r--r-- | gcc/tree-outof-ssa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index 827f91d1511..a99f03d0121 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -1634,12 +1634,20 @@ find_replaceable_in_bb (temp_expr_table_p tab, basic_block bb) var_map map = tab->map; value_expr_p p; ssa_op_iter iter; + bitmap_iterator bi; for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) { stmt = bsi_stmt (bsi); ann = stmt_ann (stmt); + if (TREE_CODE (stmt) == ASM_EXPR && ASM_VOLATILE_P (stmt)) + { + /* Volatile ASM_EXPRs kill all current expressions. */ + EXECUTE_IF_SET_IN_BITMAP ((tab->partition_in_use), 0, partition, bi) + kill_expr (tab, partition, false); + continue; + } /* Determine if this stmt finishes an existing expression. */ FOR_EACH_SSA_TREE_OPERAND (def, stmt, iter, SSA_OP_USE) { |