]> granicus.if.org Git - llvm/commit
[IR][PatternMatch] introduce m_Unless() matcher
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 25 Jul 2019 13:34:14 +0000 (13:34 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 25 Jul 2019 13:34:14 +0000 (13:34 +0000)
commit9e43193a301b704e93aed625d0e73adf2176f807
treeba26c84f61eb89bc44e307cf1df2f7b3060b1d76
parent30d83df5a58d58ffc45560d30e2f5d6c03abdd61
[IR][PatternMatch] introduce m_Unless() matcher

Summary:
I don't think it already exists? I don't see it at least.
It is important to have it because else we'll do some checks after `match()`,
and that may result in missed folds in commutative nodes.

Reviewers: spatel, craig.topper, RKSimon, majnemer

Reviewed By: spatel

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64037

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367016 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h
unittests/IR/PatternMatch.cpp