[PATCH] D51964: [InstCombine] Fold (xor (min/max X, Y), -1) -> (max/min ~X, ~Y) when X and Y are freely invertible.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 12 09:32:12 PDT 2018
craig.topper updated this revision to Diff 165102.
craig.topper added a comment.
More test cases and fix an infinite loop.
https://reviews.llvm.org/D51964
Files:
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/xor.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51964.165102.patch
Type: text/x-patch
Size: 6179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180912/74dbf21e/attachment.bin>
More information about the llvm-commits
mailing list