https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110423
--- Comment #5 from Vineet Gupta <vineetg at gcc dot gnu.org> ---
FWIW the core of the issue (const remat) remains, its just masked after
r13-4459-g6508d5e5a1a8c0 which rewrites the crc logic to not use constants.
2022-12-02 6508d5e5a1a8 match.pd: rewrite select to branchless expression
If that change is revert and -fno-optimize-crc we still get the duplicate
constant.
❯ grep 24576 crc8-250623-revert-match-pd.s
li a4,-24576
li a3,-24576
li a4,-24576
li a3,-24576
li a4,-24576
li a3,-24576
li a5,-24576