[PATCH] D45317: Eliminate a bitwise 'not' op of 'not' min/max by inverting the min/max.
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 10 08:36:05 PDT 2018
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM - see inline for a nit.
================
Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2717-2719
+ if (match(RHS, m_Not(m_Value(X)))) {
+ std::swap(RHS, LHS);
+ }
----------------
Can remove the braces here based on coding style guidelines.
Repository:
rL LLVM
https://reviews.llvm.org/D45317
More information about the llvm-commits
mailing list