[PATCH] D109151: [InstCombine] Convert xor (ashr X, BW-1), C -> select(X >=s 0, C, ~C)
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 12:09:21 PDT 2021
dmgreen updated this revision to Diff 377634.
dmgreen added a comment.
Sorry for the delay, other things came up. This is a rebase, plus makes used of m_APIntAllowUndef and moves the m_OneUse before the m_TruncOrSelf.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109151/new/
https://reviews.llvm.org/D109151
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/truncating-saturate.ll
llvm/test/Transforms/InstCombine/xor-ashr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109151.377634.patch
Type: text/x-patch
Size: 16298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/1637bfe1/attachment.bin>
More information about the llvm-commits
mailing list