HomePhabricator

[MIPS GlobalISel] Select bitreverse. Recommit

Authored by Petar.Avramovic on Dec 30 2019, 9:06 AM.

Description

[MIPS GlobalISel] Select bitreverse. Recommit

G_BITREVERSE is generated from llvm.bitreverse.<type> intrinsics,
clang genrates these intrinsics from builtin_bitreverse32 and
builtin_bitreverse64.
Add lower and narrowscalar for G_BITREVERSE.
Lower G_BITREVERSE on MIPS32.

Recommit notes:
Introduce temporary variables in order to make sure
instructions get inserted into MachineFunction in same order
regardless of compiler used to build llvm.

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

Details

Committed
Petar.AvramovicDec 30 2019, 9:06 AM
Differential Revision
D71363: [MIPS GlobalISel] Select bitreverse
Parents
rG1247865fe024: AMDGPU/GlobalISel: Select llvm.amdgcn.fmad.ftz
Branches
Unknown
Tags
Unknown