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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 09:13:27 PDT 2019


spatel updated this revision to Diff 212834.
spatel added a comment.

Patch updated:
There was a bug in translating the code from instsimplify. Added tests (rL367577 <https://reviews.llvm.org/rL367577>, rL367579 <https://reviews.llvm.org/rL367579>) to make sure we are propagating the correct T/F arm of the select with swapped operands and 'ne' predicate.


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.212834.patch
Type: text/x-patch
Size: 51094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190801/e3905ff9/attachment.bin>


More information about the llvm-commits mailing list