[PATCH] D45108: [InstCombine] Get rid of select of bittest (PR36950 / PR17564)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 07:35:02 PDT 2018


lebedev.ri updated this revision to Diff 141152.
lebedev.ri added a comment.

- Refactored into a function
- Flattened the nesting
- Added some one-use checks
- Do not create `shl` if it is to be removed immediately.

FIXME: do we want to allow the shift amount to be a value (not a constant), too?


Repository:
  rL LLVM

https://reviews.llvm.org/D45108

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45108.141152.patch
Type: text/x-patch
Size: 15148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180405/f37deab0/attachment.bin>


More information about the llvm-commits mailing list