[llvm] [Mips] Fix cttz.i32 fails to lower on mips16 (PR #179633)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 8 18:49:49 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:
> are you building for all targets?
Yes, you are right. Thanks!
https://github.com/llvm/llvm-project/pull/179633
More information about the llvm-commits
mailing list