aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2023-06-08 00:09:00 +0100
committerThomas Schwinge <thomas@codesourcery.com>2023-11-15 15:25:22 +0100
commit75c20a99b3a242121eef8a532f5224c00c471b56 (patch)
treefda338264c9308a77356b00104a9692f01e40e81 /gcc/cp
parent61c45c055a5ccfc59463c21ab057dece822d973c (diff)
downloadgcc-75c20a99b3a242121eef8a532f5224c00c471b56.zip
gcc-75c20a99b3a242121eef8a532f5224c00c471b56.tar.gz
gcc-75c20a99b3a242121eef8a532f5224c00c471b56.tar.bz2
Update nvptx's bitrev<mode>2 pattern to use BITREVERSE rtx.
This minor tweak to the nvptx backend switches the representation of of the brev instruction from an UNSPEC to instead use the new BITREVERSE rtx. This allows various RTL optimizations including evaluation (constant folding) of integer constant arguments at compile-time. gcc/ * config/nvptx/nvptx.md (UNSPEC_BITREV): Delete. (bitrev<mode>2): Represent using bitreverse. gcc/testsuite/ * gcc.target/nvptx/brev-2-O2.c: Adjust. * gcc.target/nvptx/brevll-2-O2.c: Likewise. Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions