[all-commits] [llvm/llvm-project] be3981: [SelectionDAG] Further improve computeKnownBits fo...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Jun 6 09:59:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be398100eaf5a59146170167e34ffc7ba880c88e
      https://github.com/llvm/llvm-project/commit/be398100eaf5a59146170167e34ffc7ba880c88e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-06-06 (Mon, 06 Jun 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/RISCV/min-max.ll

  Log Message:
  -----------
  [SelectionDAG] Further improve computeKnownBits for (smax X, C) where C is non-negative.

Move the code that was added for D126896 after the normal recursive calls
to computeKnownBits. This allows us to calculate trailing zeros.
Previously we would break out of the switch before the recursive calls.




More information about the All-commits mailing list