[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 Sep 8 03:00:25 PDT 2021
dmgreen updated this revision to Diff 371296.
dmgreen added a comment.
Add an assert for zero, and change to `s> -1`.
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.371296.patch
Type: text/x-patch
Size: 14384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/3153c5c4/attachment.bin>
More information about the llvm-commits
mailing list