llvm/llvm-project
Voir sur GitHub[X86] SimplifyDemandedBitsForTargetNode - add X86ISD::BZHI handling
Open
#177 369 ouverte le 22 janv. 2026
backend:X86good first issue
Métriques du dépôt
- Stars
- (26 378 stars)
- Métriques de merge PR
- (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)
Description
- Only the bottom 8 bits of the mask (second operand) are required
- Based off the known bits of the mask, we can tweak the src DemandedBits - as well as the incoming DemandedBits mask, if the 8 bit mask is known to be less than bitwidth (
getMaxValue.ult(BitWidth)) then bits above getMaxValue are not demanded.
Supporting tests can be added to combine-bzhi.ll
See also #177347 and #177364 for refs