[all-commits] [llvm/llvm-project] dcccb2: [PowerPC] Fix bswap combine for big endian systems

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Thu Jun 24 16:28:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcccb2f59401f309d75b9d80afed443464c50d9d
      https://github.com/llvm/llvm-project/commit/dcccb2f59401f309d75b9d80afed443464c50d9d
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/bswap-load-store.ll
    M llvm/test/CodeGen/PowerPC/ld-bswap64-no-ldbrx.ll

  Log Message:
  -----------
  [PowerPC] Fix bswap combine for big endian systems

Commit 0464586ac515e8cfebe4c7615387fd625c8869f5 added a combine
for a 64-bit load feeding a bswap but the implementation is only
correct for little endian systems.
This fixes it for big endian systems.




More information about the All-commits mailing list