[all-commits] [llvm/llvm-project] dbc136: [MIPS GlobalISel] Select bitreverse

petar-avramovic via All-commits all-commits at lists.llvm.org
Mon Dec 30 02:33:42 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dbc136e0fe7e14c64dcb78e72321bb41af60afa4
      https://github.com/llvm/llvm-project/commit/dbc136e0fe7e14c64dcb78e72321bb41af60afa4
  Author: Petar Avramovic <Petar.Avramovic at rt-rk.com>
  Date:   2019-12-30 (Mon, 30 Dec 2019)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitreverse.mir
    A llvm/test/CodeGen/Mips/GlobalISel/legalizer/bitreverse.mir
    A llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/bitreverse.ll

  Log Message:
  -----------
  [MIPS GlobalISel] Select bitreverse

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.

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




More information about the All-commits mailing list