[PATCH] D37158: [InstCombine][InstSimplify] Teach decomposeBitTestICmp to look through truncate instructions

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 13:35:34 PDT 2017


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:302-317
+  Y = ConstantInt::get(X->getType(), Mask);
+  Z = ConstantInt::get(X->getType(), 0);
   return true;
 }
 
 /// Handle (icmp(A & B) ==/!= C) &/| (icmp(A & D) ==/!= E).
 /// Return the set of pattern classes (from MaskedICmpType) that both LHS and
----------------
These are just cleanups? Could go in as a preliminary NFC.


https://reviews.llvm.org/D37158





More information about the llvm-commits mailing list