[PATCH] D145846: [InstCombine] enhance icmp with sub folds
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 00:52:20 PDT 2023
Allen updated this revision to Diff 507259.
Allen added a comment.
Address comment
1、delete the repeat ICMP_NE check, as isEquality() already include it
2、use "thwart complexity-based canonicalization" for commuted case
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145846/new/
https://reviews.llvm.org/D145846
Files:
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-sub.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145846.507259.patch
Type: text/x-patch
Size: 4217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230322/b033a58c/attachment.bin>
More information about the llvm-commits
mailing list