[PATCH] D37237: [InstCombine] Teach foldSelectICmpAndOr to handle vector splats

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 15:33:48 PDT 2017


craig.topper created this revision.

This was pretty close to working already. While I was here I went ahead and passed the ICmpInst pointer from the caller instead of doing a dyn_cast that can never fail.


https://reviews.llvm.org/D37237

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select-with-bitwise-ops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37237.112980.patch
Type: text/x-patch
Size: 9620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170828/9c94de19/attachment.bin>


More information about the llvm-commits mailing list