* Subreg promotion not happening for the test case
@ 2023-10-31 17:03 Vineet Gupta
0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2023-10-31 17:03 UTC (permalink / raw)
To: Jeff Law, Robin Dapp; +Cc: gcc, gnu-toolchain
Hi Jeff, Robin,
This morning I was talking about the following test where subreg
promoted is not being generated during expand, whereas for RISC-V
ABI/ISA it should.
gcc.c-torture/compile/20070121.c -Os -march=rv64gc -mabi=lp64d
expand_gimple_basic_block
expand_gimple_stmt
...
expand_expr_real
...
case SSA_NAME:
if (REG_P (decl_rtl)
&& dmode != BLKmode
&& GET_MODE (decl_rtl) != dmode)
Here it seems to be taking promote_ssa_mode () codepath and not
promote_function_mode
Do note this only happens for -Os. Tree dump is same for both -Os and
-O2, Expand for -Os misses setting the subreg promoted.
Thx,
-Vineet
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-31 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 17:03 Subreg promotion not happening for the test case Vineet Gupta
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).