[all-commits] [llvm/llvm-project] 1e42c7: [Mips] Fix cttz.i32 fails to lower on mips16 (#179...
yingopq via All-commits
all-commits at lists.llvm.org
Wed Feb 11 00:28:19 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e42c76d6133664b6b0a46e7844a27bb9ca6a45d
https://github.com/llvm/llvm-project/commit/1e42c76d6133664b6b0a46e7844a27bb9ca6a45d
Author: yingopq <115543042+yingopq at users.noreply.github.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/lib/Target/Mips/MipsISelLowering.cpp
A llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/cttz-mips16.ll
Log Message:
-----------
[Mips] Fix cttz.i32 fails to lower on mips16 (#179633)
MIPS16 cannot handle constant pools created by CTTZ table lookup
expansion. This causes "Cannot select" errors when trying to select
MipsISD::Lo nodes for constant pool addresses.
Modify the table lookup conditions to check ConstantPool operation
status, and only set ConstantPool to Custom in non-MIPS16 mode in MIPS
backend.
This ensures MIPS16 uses the ISD::CTPOP instead of attempting
unsupported constant pool operations.
Fix #61055.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list