diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2023-06-08 00:09:00 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-11-15 15:25:22 +0100 |
commit | 75c20a99b3a242121eef8a532f5224c00c471b56 (patch) | |
tree | fda338264c9308a77356b00104a9692f01e40e81 /gcc/cp | |
parent | 61c45c055a5ccfc59463c21ab057dece822d973c (diff) | |
download | gcc-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