[all-commits] [llvm/llvm-project] f42541: [InstCombine] Add tests for 'partial' bswap patterns

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Sep 30 08:11:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f425418fc4ebd989c6c3d59d20e7fe37cb29259c
      https://github.com/llvm/llvm-project/commit/f425418fc4ebd989c6c3d59d20e7fe37cb29259c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

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

  Log Message:
  -----------
  [InstCombine] Add tests for 'partial' bswap patterns

As mentioned on PR47191, if we're bswap'ing some bytes and the zero'ing the remainder we can perform this as a bswap+mask which helps us match 'partial' bswaps as a first step towards folding into a more complex bswap pattern.




More information about the All-commits mailing list