[PATCH] D67799: [InstCombine] Fold a shifty implementation of clamp negative to zero.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 00:13:27 PDT 2019


huihuiz updated this revision to Diff 221257.
huihuiz marked 2 inline comments as done.
huihuiz retitled this revision from "[InstCombine] Fold a shifty implementation of clamp0." to "[InstCombine] Fold a shifty implementation of clamp negative to zero.".
huihuiz edited the summary of this revision.
huihuiz added a comment.

make folding more general


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D67799

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/sub-ashr-and-to-icmp-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67799.221257.patch
Type: text/x-patch
Size: 6999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190923/db211048/attachment.bin>


More information about the llvm-commits mailing list