[PATCH] D36384: [InstCombine] Support (X | C1) & C2 --> (X & C2^(C1&C2)) | (C1&C2) for vector splats

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 10:11:04 PDT 2017

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


Comment at: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1222
+                                                         Together ^ *C));
+      And->takeName(Op0);
+      return BinaryOperator::CreateOr(And, ConstantInt::get(I.getType(),
It's not unique to this transform, but I've wondered: are these calls completely eliminated in release builds?


More information about the llvm-commits mailing list