[all-commits] [llvm/llvm-project] 5ddfac: [InstCombine] add tests for select of ctlz/cttz wi...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Sep 12 12:24:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ddfac40c368a1ba953ffd01023085607ccdc69a
      https://github.com/llvm/llvm-project/commit/5ddfac40c368a1ba953ffd01023085607ccdc69a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-12 (Mon, 12 Sep 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll

  Log Message:
  -----------
  [InstCombine] add tests for select of ctlz/cttz with 'not' value; NFC


  Commit: 53eede597e8423410ec48b7c335c76f3b6c4c714
      https://github.com/llvm/llvm-project/commit/53eede597e8423410ec48b7c335c76f3b6c4c714
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-12 (Mon, 12 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll

  Log Message:
  -----------
  [InstCombine] look through 'not' of ctlz/cttz op with 0-is-undef

https://alive2.llvm.org/ce/z/MNsC1S

This pattern was flagged at:
https://discourse.llvm.org/t/instcombines-select-optimizations-dont-trigger-reliably/64927


Compare: https://github.com/llvm/llvm-project/compare/aedad60231fc...53eede597e84


More information about the All-commits mailing list