[all-commits] [llvm/llvm-project] fadd15: [AggressiveInstCombine] foldAnyOrAllBitsSet - add ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 15 03:03:30 PDT 2020


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

  Changed paths:
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    M llvm/test/Transforms/AggressiveInstCombine/masked-cmp.ll

  Log Message:
  -----------
  [AggressiveInstCombine] foldAnyOrAllBitsSet - add uniform vector support

Replace m_ConstantInt with m_APInt to support uniform vectors (with no undef elements)

Adding non-undef support would involve some refactoring of the MaskOps struct but this might still be worth it.




More information about the All-commits mailing list