diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2004-10-12 20:50:08 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@gcc.gnu.org> | 2004-10-12 20:50:08 +0000 |
commit | 01d8c00bfc35c4abb8868f87a385639545b0e849 (patch) | |
tree | 307a8f37393b25c5868e66d16067530b6f501427 /gcc/tree-outof-ssa.c | |
parent | 967af719d20daa485fa058923111e3e418d17028 (diff) | |
download | gcc-01d8c00bfc35c4abb8868f87a385639545b0e849.zip gcc-01d8c00bfc35c4abb8868f87a385639545b0e849.tar.gz gcc-01d8c00bfc35c4abb8868f87a385639545b0e849.tar.bz2 |
re PR tree-optimization/17892 (gcc-4.0 should not reassociate floating point add or multiplication)
PR 17892.
OKed by Roger Sayle.
From-SVN: r88950
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 827f91d..a99f03d 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) { |