[PATCH] D65576: [InstCombine] simplify a cmp+select using binop result equivalence

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 07:08:48 PDT 2019


spatel updated this revision to Diff 213044.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:

1. Simplified code.
2. Added examples to code comments.
3. Changed dyn_cast from BinaryOperator to more general Instruction.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65576/new/

https://reviews.llvm.org/D65576

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/select-bitext-bitwise-ops.ll
  llvm/test/Transforms/InstCombine/select-obo-peo-ops.ll
  llvm/test/Transforms/InstCombine/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65576.213044.patch
Type: text/x-patch
Size: 51157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190802/5551e943/attachment.bin>


More information about the llvm-commits mailing list