tree-tailcall.c (find_tail_calls): Also fail is statement has volatile operands.
* tree-tailcall.c (find_tail_calls): Also fail is statement has volatile operands. From-SVN: r86938
This commit is contained in:
parent
73022c2a43
commit
ba2e294dfb
@ -1,5 +1,8 @@
|
||||
2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* tree-tailcall.c (find_tail_calls): Also fail is statement has
|
||||
volatile operands.
|
||||
|
||||
* tree-ssa.c (propagate_into_addr): Properly test for LHR.
|
||||
|
||||
* doc/c-tree.texi: Document new operands for ARRAY_REF and
|
||||
|
@ -395,11 +395,12 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
|
||||
if (TREE_CODE (call) == CALL_EXPR)
|
||||
break;
|
||||
|
||||
/* If the statement has virtual operands, fail. */
|
||||
/* If the statement has virtual or volatile operands, fail. */
|
||||
ann = stmt_ann (stmt);
|
||||
if (NUM_V_MAY_DEFS (V_MAY_DEF_OPS (ann))
|
||||
|| NUM_V_MUST_DEFS (V_MUST_DEF_OPS (ann))
|
||||
|| NUM_VUSES (VUSE_OPS (ann)))
|
||||
|| NUM_VUSES (VUSE_OPS (ann))
|
||||
|| ann->has_volatile_ops)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user