[llvm] [Mips] Fix cttz.i32 fails to lower on mips16 (PR #179633)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 22:51:18 PST 2026
================
@@ -9692,7 +9692,8 @@ SDValue TargetLowering::expandCTTZ(SDNode *Node, SelectionDAG &DAG) const {
// Emit Table Lookup if ISD::CTPOP used in the fallback path below is going
// to be expanded or converted to a libcall.
if (!VT.isVector() && !isOperationLegalOrCustomOrPromote(ISD::CTPOP, VT) &&
- !isOperationLegal(ISD::CTLZ, VT))
+ !isOperationLegal(ISD::CTLZ, VT) &&
+ isOperationCustom(ISD::ConstantPool, VT))
----------------
yingopq wrote:
The tests are OK, could you help review again?
https://github.com/llvm/llvm-project/pull/179633
More information about the llvm-commits
mailing list