diff options
author | jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-07 11:08:30 +0000 |
---|---|---|
committer | jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-07 11:08:30 +0000 |
commit | b43b0cfd161c5e289a4c8c97aa0bd6e67446d6e3 (patch) | |
tree | 8b3c69d5e0884512063a3a8e1706f27f75531c19 /gcc/gimple-fold.c | |
parent | a6e46537f6c8644acce5d4f3655cccaecde648b1 (diff) | |
download | gcc-b43b0cfd161c5e289a4c8c97aa0bd6e67446d6e3.tar.gz |
[PATCH] PR63676, exit tree fold when node be TREE_CLOBBER_P
gcc/
PR tree-optimization/63676
* gimple-fold.c (fold_gimple_assign): Do not fold node when
TREE_CLOBBER_P be true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217215 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 547f9a75c36..71e46388d61 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -320,6 +320,9 @@ fold_gimple_assign (gimple_stmt_iterator *si) { tree rhs = gimple_assign_rhs1 (stmt); + if (TREE_CLOBBER_P (rhs)) + return NULL_TREE; + if (REFERENCE_CLASS_P (rhs)) return maybe_fold_reference (rhs, false); |