HomePhabricator

[DAG] SimplifyDemandedVectorElts - zero_extend_vector_inreg(and(x,c)) -> and(x…

Authored by RKSimon on Wed, Nov 17, 4:12 AM.

Description

[DAG] SimplifyDemandedVectorElts - zero_extend_vector_inreg(and(x,c)) -> and(x,c')

If we've only demanded the 0'th element, and it comes from a (one-use) AND, try to convert the zero_extend_vector_inreg into a mask and constant fold it with the AND.

Details

Committed
RKSimonWed, Nov 17, 4:41 AM
Parents
rG964536cf04e2: [fir] !fir.tdesc type conversion
Branches
Unknown
Tags
Unknown