[all-commits] [llvm/llvm-project] af1f01: [InstCombine] Add lshr(trunc(lshr(x, c1)), c2) -> t...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Oct 9 08:56:20 PDT 2020


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

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

  Log Message:
  -----------
  [InstCombine] Add lshr(trunc(lshr(x,c1)), c2) -> trunc(lshr(lshr(x,c1),c2)) vector tests


  Commit: 8a836daaa97bc979cd589f5efb060d2223225d8d
      https://github.com/llvm/llvm-project/commit/8a836daaa97bc979cd589f5efb060d2223225d8d
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

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

  Log Message:
  -----------
  [InstCombine] Support lshr(trunc(lshr(x,c1)), c2) -> trunc(lshr(lshr(x,c1),c2)) uniform vector tests

FoldShiftByConstant is hardcoded for scalar/uniform outer shift amounts atm so that needs to be fixed first to support non-uniform cases


Compare: https://github.com/llvm/llvm-project/compare/4e69a52952bd...8a836daaa97b


More information about the All-commits mailing list