[PATCH] D36781: [InstCombine] Make folding (X >s -1) ? C1 : C2 --> ((X >>s 31) & (C2 - C1)) + C1 support splat vectors

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 13:14:35 PDT 2017


craig.topper updated this revision to Diff 111406.
craig.topper added a comment.

Added back the type checks and added an explicit truncate test. We don't want to look through a truncate here. Even if decomposeBitTestICmp starts looking through truncates, we need to prevent is for this usage.


https://reviews.llvm.org/D36781

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36781.111406.patch
Type: text/x-patch
Size: 5596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170816/890bbf41/attachment.bin>


More information about the llvm-commits mailing list