[all-commits] [llvm/llvm-project] bfe377: AMDGPU: Use v_perm_b32 to implement bswap

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Feb 13 09:45:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bfe3779459eddaf6ad869a9707c827c2a243def6
      https://github.com/llvm/llvm-project/commit/bfe3779459eddaf6ad869a9707c827c2a243def6
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/bitreverse.ll
    M llvm/test/CodeGen/AMDGPU/bswap.ll

  Log Message:
  -----------
  AMDGPU: Use v_perm_b32 to implement bswap

Also greatly improve i64 lowering. LegalizeIntegerTypes does the
correct narrowing if i64 isn't legal. Just workaround this for
SelectionDAG by making i64 legal and splitting in the patterns.




More information about the All-commits mailing list