[PATCH] D66232: [InstCombine] Try to reuse constant from select in leading comparison

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 11:06:24 PDT 2019


lebedev.ri updated this revision to Diff 216673.
lebedev.ri marked 4 inline comments as done.
lebedev.ri added a comment.

Rebased, posted D66607 <https://reviews.llvm.org/D66607> to adress regression that this patch exposes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66232

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/canonicalize-clamp-with-select-of-constant-threshold-pattern.ll
  llvm/test/Transforms/InstCombine/reuse-constant-from-select-in-icmp.ll
  llvm/test/Transforms/InstCombine/unrecognized_three-way-comparison.ll
  llvm/test/Transforms/InstCombine/xor-of-icmps-with-extra-uses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66232.216673.patch
Type: text/x-patch
Size: 24945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190822/7f381473/attachment-0001.bin>


More information about the llvm-commits mailing list