[all-commits] [llvm/llvm-project] 4c44b0: [InstCombine] fold ctpop-of-select with 1 or more ...

RotateRight via All-commits all-commits at lists.llvm.org
Sun Jun 20 08:36:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c44b02d87bce42452594096cc0e9245d94596a8
      https://github.com/llvm/llvm-project/commit/4c44b02d87bce42452594096cc0e9245d94596a8
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-06-20 (Sun, 20 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/intrinsic-select.ll

  Log Message:
  -----------
  [InstCombine] fold ctpop-of-select with 1 or more constant arms

The general pattern is mentioned in:
https://llvm.org/PR50140
...but we need to do a bit more to handle intrinsics with extra operands
like ctlz/cttz.




More information about the All-commits mailing list