HomePhabricator

[MIPS GlobalISel] Select bswap

Authored by Petar.Avramovic on Dec 30 2019, 2:13 AM.

Description

[MIPS GlobalISel] Select bswap

G_BSWAP is generated from llvm.bswap.<type> intrinsics, clang genrates
these intrinsics from builtin_bswap32 and builtin_bswap64.
Add lower and narrowscalar for G_BSWAP.
Lower G_BSWAP on MIPS32, select G_BSWAP on MIPS32 revision 2 and later.

Differential Revision: https://reviews.llvm.org/D71362

Details

Committed
Petar.AvramovicDec 30 2019, 2:13 AM
Differential Revision
D71362: [MIPS GlobalISel] Select bswap
Parents
rGcd2a73a9f01b: [MCP] Add stats for backward copy propagation. NFC.
Branches
Unknown
Tags
Unknown