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.
Paths
| Differential D112267
[TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ. ClosedPublic Authored by craig.topper on Oct 21 2021, 1:55 PM.
Details Summary There is no need to return a bool and have an SDValue output I have another patch to add more callers of these so I thought
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 21 2021, 2:05 PM
Closed by commit rG996123e5e8d9: [TargetLowering] Simplify the interface for expandCTPOP/expandCTLZ/expandCTTZ. (authored by craig.topper). · Explain WhyOct 21 2021, 3:35 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 381412 llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
|
Another candidate?