public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2854] target/101788 - avoid decomposing hard-register "loads"
@ 2021-08-11 14:24 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-08-11 14:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2cb02e065ff015a69db918eb545a00cd6edf0194

commit r12-2854-g2cb02e065ff015a69db918eb545a00cd6edf0194
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Aug 11 14:10:52 2021 +0200

    target/101788 - avoid decomposing hard-register "loads"
    
    This avoids decomposing hard-register accesses that masquerade as
    loads.
    
    2021-08-11  Richard Biener  <rguenther@suse.de>
    
            PR target/101877
            * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
            hard-register accesses.

Diff:
---
 gcc/tree-ssa-forwprop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index bd64b8e46bc..5b30d4c1a76 100644
--- a/gcc/tree-ssa-forwprop.c
+++ b/gcc/tree-ssa-forwprop.c
@@ -3190,7 +3190,8 @@ pass_forwprop::execute (function *fun)
 		       || (fun->curr_properties & PROP_gimple_lvec))
 		   && gimple_assign_load_p (stmt)
 		   && !gimple_has_volatile_ops (stmt)
-		   && !stmt_can_throw_internal (cfun, stmt))
+		   && !stmt_can_throw_internal (cfun, stmt)
+		   && (!VAR_P (rhs) || !DECL_HARD_REGISTER (rhs)))
 	    optimize_vector_load (&gsi);
 
 	  else if (code == COMPLEX_EXPR)


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

only message in thread, other threads:[~2021-08-11 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 14:24 [gcc r12-2854] target/101788 - avoid decomposing hard-register "loads" Richard Biener

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).