[all-commits] [llvm/llvm-project] 9a7c26: [GISel] Restrict G_BSWAP to multiples of 16 bits. ...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Oct 30 10:28:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a7c26a399a827a5eb6ec5a2c5895c1bb5b08c54
      https://github.com/llvm/llvm-project/commit/9a7c26a399a827a5eb6ec5a2c5895c1bb5b08c54
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M llvm/lib/CodeGen/MachineVerifier.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-bswap.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bswap.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir
    A llvm/test/MachineVerifier/test_g_bswap.mir

  Log Message:
  -----------
  [GISel] Restrict G_BSWAP to multiples of 16 bits. (#70245)

This is consistent with the IR verifier and SelectionDAG's getNode.

Update tests accordingly. I tried to keep some coverage of non-pow2 when
possible. X86 didn't like a G_UNMERGE_VALUES from s48 to 3 s16 that got
created when I tried s48.




More information about the All-commits mailing list