[all-commits] [llvm/llvm-project] 996123: [TargetLowering] Simplify the interface for expand...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Oct 21 15:35:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 996123e5e8d9b2894c88e02e98ce09abdf33bb7e
      https://github.com/llvm/llvm-project/commit/996123e5e8d9b2894c88e02e98ce09abdf33bb7e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

  Log Message:
  -----------
  [TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ.

There is no need to return a bool and have an SDValue output
parameter. Just return the SDValue and let the caller check if it
is null.

I have another patch to add more callers of these so I thought
I'd clean up the interface first.

Reviewed By: RKSimon

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




More information about the All-commits mailing list