[all-commits] [llvm/llvm-project] 29ac9f: [InstCombine] collectBitParts - convert to use Pat...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 1 08:53:59 PDT 2020


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

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp

  Log Message:
  -----------
  [InstCombine] collectBitParts - convert to use PatterMatch matchers and avoid IntegerType casts.

Make sure we're using getScalarSizeInBits instead of cast<IntegerType> to get Type bit widths.

This is preliminary cleanup before we can start adding vector support to the bswap/bitreverse (element level) matching.




More information about the All-commits mailing list