[all-commits] [llvm/llvm-project] b82a74: [InstCombine] Add or(shl(v, and(x, bw-1)), lshr(v, bw-...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Oct 3 09:18:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b82a7486d108a708f00c00feed784f34711300db
      https://github.com/llvm/llvm-project/commit/b82a7486d108a708f00c00feed784f34711300db
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-03 (Sat, 03 Oct 2020)

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

  Log Message:
  -----------
  [InstCombine] Add or(shl(v,and(x,bw-1)),lshr(v,bw-and(x,bw-1))) rotate tests

If we know the shift amount is less than the bitwidth we should be able to convert this to a rotate/funnel shift




More information about the All-commits mailing list