[PATCH] D62818: [InstCombine] Fix fold order for icmp pred (and (sh X, Y), C), 0.
Huihui Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 22:27:36 PDT 2019
huihuiz updated this revision to Diff 203284.
huihuiz retitled this revision from "[InstCombine] Change order of ICmp fold." to "[InstCombine] Fix fold order for icmp pred (and (sh X, Y), C), 0.".
huihuiz edited the summary of this revision.
huihuiz added a comment.
Test cases in icmp-shift-and-signbit.ll shows the updated fold order can generate better IR.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62818/new/
https://reviews.llvm.org/D62818
Files:
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp-shift-and-signbit.ll
test/Transforms/InstCombine/pr17827.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62818.203284.patch
Type: text/x-patch
Size: 7930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190606/dd240cc4/attachment.bin>
More information about the llvm-commits
mailing list