[all-commits] [llvm/llvm-project] f18efb: [InstCombine] add tests for ctpop of power-of-2; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Sun Apr 4 08:55:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f18efb70c43b4c3f92f1bb0c213f6d7e09a09f4a
      https://github.com/llvm/llvm-project/commit/f18efb70c43b4c3f92f1bb0c213f6d7e09a09f4a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-04-04 (Sun, 04 Apr 2021)

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

  Log Message:
  -----------
  [InstCombine] add tests for ctpop of power-of-2; NFC

PR48999


  Commit: c0645f13243cf574abd1f8d587dc22943b9dd95d
      https://github.com/llvm/llvm-project/commit/c0645f13243cf574abd1f8d587dc22943b9dd95d
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-04-04 (Sun, 04 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/ctpop.ll

  Log Message:
  -----------
  [InstCombine] fold popcount of exactly one bit to shift

This is discussed in https://llvm.org/PR48999 ,
but it does not solve that request.

The difference in the vector test shows that some
other logic transform is limited to scalar types.


Compare: https://github.com/llvm/llvm-project/compare/9bad7de9a3fb...c0645f13243c


More information about the All-commits mailing list