diff options
author | collison <collison@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-10 08:05:35 +0000 |
---|---|---|
committer | collison <collison@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-10 08:05:35 +0000 |
commit | b0dd30a7bfb68493fdb5e82c24d667171b59197e (patch) | |
tree | 3e2b541530072eb4c8cff2aa3009e88c34ec440f /gcc | |
parent | da1d63e8778d4e349f046f4295564c56fa8ddbc2 (diff) | |
download | linaro-gcc-b0dd30a7bfb68493fdb5e82c24d667171b59197e.tar.gz linaro-gcc-b0dd30a7bfb68493fdb5e82c24d667171b59197e.tar.bz2 linaro-gcc-b0dd30a7bfb68493fdb5e82c24d667171b59197e.zip |
2015-02-10 Michael Collison <michael.collison@linaro.org>
Backport from trunk r217215.
2014-11-07 Jiong Wang <jiong.wang@arm.com>
2014-11-07 Richard Biener <rguenther@suse.de>
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/branches/linaro/gcc-4_9-branch@220572 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog.linaro | 10 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog.linaro b/gcc/ChangeLog.linaro index eba29e9c956..55a3182357d 100644 --- a/gcc/ChangeLog.linaro +++ b/gcc/ChangeLog.linaro @@ -1,5 +1,15 @@ 2015-02-10 Michael Collison <michael.collison@linaro.org> + Backport from trunk r217215. + 2014-11-07 Jiong Wang <jiong.wang@arm.com> + 2014-11-07 Richard Biener <rguenther@suse.de> + + PR tree-optimization/63676 + * gimple-fold.c (fold_gimple_assign): Do not fold node when + TREE_CLOBBER_P be true. + +2015-02-10 Michael Collison <michael.collison@linaro.org> + Backport from trunk r219583. 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com> diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 2527d292aef..1bc41f060b6 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -374,6 +374,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); |