[PATCH] D45317: Canonicalization of the min/max patterns.
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 06:17:27 PDT 2018
spatel added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2716
+ Value *V;
+ if (match(LHS, m_Xor(m_Value(V), m_AllOnes())) &&
+ match(RHS, m_APInt(C))) {
----------------
Use m_Not() to reduce the code.
Repository:
rL LLVM
https://reviews.llvm.org/D45317
More information about the llvm-commits
mailing list