public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] [PR103302] skip multi-part clobber during lra for complex parts too
@ 2021-12-15  6:06 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2021-12-15  6:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5b5e92ea5eb9f4ced3908499519dada053f62f6c

commit 5b5e92ea5eb9f4ced3908499519dada053f62f6c
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Dec 15 03:00:57 2021 -0300

    [PR103302] skip multi-part clobber during lra for complex parts too
    
    As with the earlier patch, avoid emitting clobbers that we used to
    avoid during reload also during LRA, now when moving complex
    multi-part values.  We don't have a testcase for this one.
    
    
    for  gcc/ChangeLog
    
            PR target/103302
            * expr.c (emit_move_complex_parts): Skip clobbers during lra.

Diff:
---
 gcc/expr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/expr.c b/gcc/expr.c
index 0365625e7b8..30d1735ec29 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3736,7 +3736,7 @@ emit_move_complex_parts (rtx x, rtx y)
   /* Show the output dies here.  This is necessary for SUBREGs
      of pseudos since we cannot track their lifetimes correctly;
      hard regs shouldn't appear here except as return values.  */
-  if (!reload_completed && !reload_in_progress
+  if (!reload_completed && !reload_in_progress && !lra_in_progress
       && REG_P (x) && !reg_overlap_mentioned_p (x, y))
     emit_clobber (x);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-15  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-15  6:06 [gcc(refs/users/aoliva/heads/testme)] [PR103302] skip multi-part clobber during lra for complex parts too Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).