From 74a4de687d4628e986f64a7be2c6a683b53957a7 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 25 Feb 2019 18:14:39 +0300 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/df-scan.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cce2741a809..4a5ff8af328 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-25 Alexander Monakov + + 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 PR target/89434 diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 644d01e0b87..08d7af33371 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. */ -- 2.30.2