[llvm] [DAG][PatternMatch] Add support for matchers with flags; NFC (PR #103060)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 10:49:47 PDT 2024


================
@@ -241,8 +252,13 @@ TEST_F(SelectionDAGPatternMatchTest, matchUnaryOp) {
 
   SDValue Op0 = DAG->getCopyFromReg(DAG->getEntryNode(), DL, 1, Int32VT);
   SDValue Op1 = DAG->getCopyFromReg(DAG->getEntryNode(), DL, 1, Int64VT);
+  SDValue Op2 = DAG->getCopyFromReg(DAG->getEntryNode(), DL, 3, Int32VT);
 
   SDValue ZExt = DAG->getNode(ISD::ZERO_EXTEND, DL, Int64VT, Op0);
+  SDNodeFlags NNegFlags{};
----------------
mshockwave wrote:

I think you missed this.

https://github.com/llvm/llvm-project/pull/103060


More information about the llvm-commits mailing list