diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-10-02 17:44:10 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-10-02 17:44:10 +0200 |
commit | f240a230758a89d52799dc52606ec58963e248f2 (patch) | |
tree | 471e960cbada889c4272c30701c909bb5580a110 /gcc/tree-ssa-dse.c | |
parent | 804b7cc438701d94db8f958c2211c59f0357b757 (diff) | |
download | gcc-f240a230758a89d52799dc52606ec58963e248f2.zip gcc-f240a230758a89d52799dc52606ec58963e248f2.tar.gz gcc-f240a230758a89d52799dc52606ec58963e248f2.tar.bz2 |
re PR tree-optimization/82387 (wrong code at -O1 and -Os on x86_64-linux-gnu in 64-bit mode)
PR tree-optimization/82387
PR tree-optimization/82388
PR tree-optimization/82389
* tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
instead of live_bytes non-NULL.
* gcc.c-torture/compile/pr82389.c: New test.
* gcc.c-torture/execute/pr82387.c: New test.
* gcc.c-torture/execute/pr82388.c: New test.
From-SVN: r253356
Diffstat (limited to 'gcc/tree-ssa-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 1eca740..6f58fff 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -577,10 +577,10 @@ dse_classify_store (ao_ref *ref, gimple *stmt, gimple **use_stmt, /* If the statement is a use the store is not dead. */ else if (ref_maybe_used_by_stmt_p (use_stmt, ref)) { - /* Handle common cases where we can easily build a ao_ref + /* Handle common cases where we can easily build an ao_ref structure for USE_STMT and in doing so we find that the references hit non-live bytes and thus can be ignored. */ - if (live_bytes && (!gimple_vdef (use_stmt) || !temp)) + if (byte_tracking_enabled && (!gimple_vdef (use_stmt) || !temp)) { if (is_gimple_assign (use_stmt)) { |