[PATCH] D64038: [IR][PatternMatch] Introduce m_NegatedPower2() matcher
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 02:43:47 PDT 2019
lebedev.ri marked an inline comment as done.
lebedev.ri added a comment.
In D64038#1566185 <https://reviews.llvm.org/D64038#1566185>, @RKSimon wrote:
> Do we have an upcoming/existing use case for this?
Likewise, this is needed in a followup patch.
================
Comment at: unittests/IR/PatternMatch.cpp:112
+ EXPECT_FALSE(m_NegatedPower2().match(One));
+ EXPECT_TRUE(m_NegatedPower2().match(NegOne));
+}
----------------
RKSimon wrote:
> Maybe test a INT_MIN style value? That should return true for both?
Will do.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64038/new/
https://reviews.llvm.org/D64038
More information about the llvm-commits
mailing list