[PATCH] D65765: [InstCombine] Non-canonical clamp-like pattern handling

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 01:17:06 PDT 2019


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

Addressed review notes, dropper `uge` predicate handling - requires extra use,
which prevents this fold from happening, added `sge` predicate tests - this one can happen.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65765

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll
  llvm/test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-zero-and-positive-threshold.ll
  llvm/test/Transforms/InstCombine/canonicalize-clamp-with-select-of-constant-threshold-pattern.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65765.214780.patch
Type: text/x-patch
Size: 39463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/27b2cf5e/attachment.bin>


More information about the llvm-commits mailing list