-
Notifications
You must be signed in to change notification settings - Fork 15.6k
[DAG] SDPatternMatch - add a m_SpecificNeg() matcher #173807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🪟 Windows x64 Test Results
Failed Tests(click on a test name to see its output) LLVM-UnitLLVM-Unit.CodeGen/_/CodeGenTests_exe/15/39If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
🐧 Linux x64 Test Results
Failed Tests(click on a test name to see its output) LLVM-UnitLLVM-Unit.CodeGen/_/CodeGenTests/18/77If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
Resolves #173770
Adds m_SpecificNeg(SDValue V) to match either m_Neg(m_Specific(V)) or
constant/build-vector where elements are the negation of V's constants
Has unit test coverage on SelectionDAGPatternMatchTest.cpp