Issue 244310
Summary [DAG] SimplifyDemandedVectorElts - add ISD::VECTOR_SHUFFLE_VAR handling
Labels good first issue, llvm:SelectionDAG
Assignees
Reporter RKSimon
    We can simplify the demanded elements of the mask operand with the DemandedElts mask.

All elements of the source operand must be demanded however - unless we can use KnownBits/ConstantRange on the mask somehow to determine if there are some source operand elements that aren't ever demanded?

We can do something similar in InstCombinerImpl::SimplifyDemandedVectorElts as well for the Intrinsic::vector_shuffle equivalent
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to