[PATCH] D108049: [InstCombine] Canonicalize saturate with shift and xor to min/max clamp
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 18 02:48:24 PDT 2021
dmgreen updated this revision to Diff 367156.
dmgreen added a comment.
Thanks for taking a look. This does some cleanup as suggested, and renames the method to be consistent with others nearby.
There is a vector test in testv4i16i8. Is that what you had in mind, or would something more be preferable?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108049/new/
https://reviews.llvm.org/D108049
Files:
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/truncating-saturate.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108049.367156.patch
Type: text/x-patch
Size: 14307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/a631fc0b/attachment.bin>
More information about the llvm-commits
mailing list