[all-commits] [llvm/llvm-project] 30305d: [TargetLowering][RISCV][Sparc] Don't emit zero che...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Oct 17 10:16:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30305d794840a4920631a3d8137ee6d7f4023fe8
      https://github.com/llvm/llvm-project/commit/30305d794840a4920631a3d8137ee6d7f4023fe8
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
    M llvm/test/CodeGen/RISCV/rv32zbb.ll
    M llvm/test/CodeGen/RISCV/rv64zbb.ll
    M llvm/test/CodeGen/SPARC/cttz.ll

  Log Message:
  -----------
  [TargetLowering][RISCV][Sparc] Don't emit zero check in CTTZTableLookup for CTTZ_ZERO_UNDEF.

The code incorrectly checked for CTLZ_ZERO_UNDEF instead of
CTTZ_ZERO_UNDEF.

While I was there I flipped the condition into an early out.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D136010




More information about the All-commits mailing list