[PATCH] D64038: [IR][PatternMatch] Introduce m_NegatedPower2() matcher
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 02:31:40 PDT 2019
RKSimon added a comment.
Do we have an upcoming/existing use case for this?
================
Comment at: unittests/IR/PatternMatch.cpp:112
+ EXPECT_FALSE(m_NegatedPower2().match(One));
+ EXPECT_TRUE(m_NegatedPower2().match(NegOne));
+}
----------------
Maybe test a INT_MIN style value? That should return true for both?
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