Issue 181642
Summary [DAG] isKnownToBeAPowerOfTwo - add DemandedElts + OrZero handling to ISD::ROTL/ROTR cases
Labels good first issue, llvm:SelectionDAG
Assignees
Reporter RKSimon
    The rotate nodes can safely filter element using DemandedElts and can correctly identify zero cases when OrZero is true:

https://github.com/RKSimon/llvm-project/blob/20aff2085c358d3e112b245494161ddb9ffe0410/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp#L4734-L4737

The actual change to the inner isKnownToBeAPowerOfTwo call is trivial (add DemandedElts + OrZero passthrough args), but this will require test coverage as well - these might be possible by extending existing DAG tests, else maybe add unit tests like we did in #181485
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to