Issue 174327
Summary [DAG] SDPatternMatch - add m_Negative/m_StrictlyPositive/m_NonNegative/m_NonPositive matchers
Labels good first issue, llvm:SelectionDAG
Assignees
Reporter RKSimon
    Similar to the IR PatternMatch matchers, we should add m_Negative/m_StrictlyPositive/m_NonNegative/m_NonPositive matchers, but these should support non-constant values - not just APInt like PatternMatch.

This would be the first time we've attempted to include value tracking inside SDPatternMatch - sd_match can optionally take a SelectionDAG pointer for BasicMatchContext but its barely used and there might be a few other gotchas that need fixing.

Unit test coverage inside SelectionDAGPatternMatchTest.cpp is a must, and ideally you should find a fold in DAGCombiner/TargetLowering that would benefit from being converted to use a matcher.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to