[all-commits] [llvm/llvm-project] c4f31d: [InstCombine] add tests for shift-of-bswap; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Mar 22 05:29:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4f31d1da582232d206756b7246858f66ccdbd0c
      https://github.com/llvm/llvm-project/commit/c4f31d1da582232d206756b7246858f66ccdbd0c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/lshr.ll

  Log Message:
  -----------
  [InstCombine] add tests for shift-of-bswap; NFC


  Commit: 9e9bda2e8f5b88715bad767a4b7740df32b040d2
      https://github.com/llvm/llvm-project/commit/9e9bda2e8f5b88715bad767a4b7740df32b040d2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
    M llvm/test/Transforms/InstCombine/lshr.ll

  Log Message:
  -----------
  [InstCombine] try to narrow shifted bswap-of-zext

This is the IR counterpart to 370ebc9d9a573d6
which provided a bswap narrowing fix for issue #53867.

Here we can be more general (although I'm not sure yet
what would happen for illegal types in codegen - too
rare to worry about?):
https://alive2.llvm.org/ce/z/3-CPfo

This will be more effective if we have moved the shift
after the bswap as proposed in D122010, but it is
independent of that patch.

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


Compare: https://github.com/llvm/llvm-project/compare/c56dd20f69bf...9e9bda2e8f5b


More information about the All-commits mailing list