diff options
author | Jiong Wang <jiwang@gcc.gnu.org> | 2014-11-07 11:08:30 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2014-11-07 11:08:30 +0000 |
commit | 8c00ba08c614069a590c673fe20afe9a5f1f55fe (patch) | |
tree | 8b3c69d5e0884512063a3a8e1706f27f75531c19 /gcc/gimple-fold.c | |
parent | ad6f996c03a59af22368102961cd6a5493943d11 (diff) | |
download | gcc-8c00ba08c614069a590c673fe20afe9a5f1f55fe.zip gcc-8c00ba08c614069a590c673fe20afe9a5f1f55fe.tar.gz gcc-8c00ba08c614069a590c673fe20afe9a5f1f55fe.tar.bz2 |
[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.
From-SVN: r217215
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 547f9a7..71e4638 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); |