[PATCH] Added InstCombine transform for pattern "( A & (~B)) | (A	^ B) -> (A ^ B)"
    David Majnemer 
    david.majnemer at gmail.com
       
    Thu Jul 31 11:52:13 PDT 2014
    
    
  
LGTM with review comments addressed.
================
Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2001
@@ -2000,1 +2000,3 @@
 
+  // ( A & (~B)) | (A ^ B) -> (A ^ B)
+  if (match(Op0, m_And(m_Value(A), m_Not(m_Value(B)))) &&
----------------
Please format this like so:
  // (A & (~B)) | (A ^ B) -> (A ^ B)
http://reviews.llvm.org/D4652
    
    
More information about the llvm-commits
mailing list