ipa-pure-const.c (check_stmt): Clobbers do not make a function non-const/pure.
2012-01-27 Richard Guenther <rguenther@suse.de> * ipa-pure-const.c (check_stmt): Clobbers do not make a function non-const/pure. From-SVN: r183632
This commit is contained in:
parent
aff8659424
commit
ace018f938
@ -1,3 +1,8 @@
|
|||||||
|
2012-01-27 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* ipa-pure-const.c (check_stmt): Clobbers do not make a
|
||||||
|
function non-const/pure.
|
||||||
|
|
||||||
2012-01-27 Richard Guenther <rguenther@suse.de>
|
2012-01-27 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/50444
|
PR tree-optimization/50444
|
||||||
|
@ -652,7 +652,8 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa)
|
|||||||
print_gimple_stmt (dump_file, stmt, 0, 0);
|
print_gimple_stmt (dump_file, stmt, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gimple_has_volatile_ops (stmt))
|
if (gimple_has_volatile_ops (stmt)
|
||||||
|
&& !gimple_clobber_p (stmt))
|
||||||
{
|
{
|
||||||
local->pure_const_state = IPA_NEITHER;
|
local->pure_const_state = IPA_NEITHER;
|
||||||
if (dump_file)
|
if (dump_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user