diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2019-02-25 18:14:39 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@gcc.gnu.org> | 2019-02-25 18:14:39 +0300 |
commit | 74a4de687d4628e986f64a7be2c6a683b53957a7 (patch) | |
tree | 7e6fcd4be70cd0a1ca1b8a4eb0603e10f7024c31 | |
parent | ea229aa8a1bab0770a1fbd65bb577d2dc4925b69 (diff) | |
download | gcc-74a4de687d4628e986f64a7be2c6a683b53957a7.zip gcc-74a4de687d4628e986f64a7be2c6a683b53957a7.tar.gz gcc-74a4de687d4628e986f64a7be2c6a683b53957a7.tar.bz2 |
df-scan: fix use of mw_order in df_mw_compare (PR 86096)
PR rtl-optimization/86096
* df-scan.c (df_mw_compare): Do not check mw_reg fields when
comparing mw_order values.
From-SVN: r269189
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/df-scan.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cce2741..4a5ff8a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-25 Alexander Monakov <amonakov@ispras.ru> + + PR rtl-optimization/86096 + * df-scan.c (df_mw_compare): Do not check mw_reg fields when + comparing mw_order values. + 2019-02-25 Jakub Jelinek <jakub@redhat.com> PR target/89434 diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 644d01e..08d7af3 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -2208,10 +2208,7 @@ df_mw_compare (const df_mw_hardreg *mw1, const df_mw_hardreg *mw2) if (mw1->end_regno != mw2->end_regno) return mw1->end_regno - mw2->end_regno; - if (mw1->mw_reg != mw2->mw_reg) - return mw1->mw_order - mw2->mw_order; - - return 0; + return mw1->mw_order - mw2->mw_order; } /* Like df_mw_compare, but compare two df_mw_hardreg** pointers R1 and R2. */ |