From: Vineet Gupta <vineetg@rivosinc.com>
To: Jeff Law <jeffreyalaw@gmail.com>, Robin Dapp <rdapp.gcc@gmail.com>
Cc: gcc@gcc.gnu.org, gnu-toolchain <gnu-toolchain@rivosinc.com>
Subject: Subreg promotion not happening for the test case
Date: Tue, 31 Oct 2023 10:03:48 -0700 [thread overview]
Message-ID: <0b341043-dbe1-44fe-b468-30e4e8d4d940@rivosinc.com> (raw)
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
reply other threads:[~2023-10-31 17:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b341043-dbe1-44fe-b468-30e4e8d4d940@rivosinc.com \
--to=vineetg@rivosinc.com \
--cc=gcc@gcc.gnu.org \
--cc=gnu-toolchain@rivosinc.com \
--cc=jeffreyalaw@gmail.com \
--cc=rdapp.gcc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).