[PATCH] D145846: [InstCombine] enhance icmp with sub folds

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 22:18:37 PDT 2023


Allen updated this revision to Diff 506465.
Allen added a comment.

address commet
1、Add more cases (also update on D146268 <https://reviews.llvm.org/D146268>)
2、update with getScalarSizeInBits and add related vector case
3、use ICmpInst::isEquality(Pred) to replace Pred == ICmpInst::ICMP_EQ
4、I.getPredicate() --> Pred


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.506465.patch
Type: text/x-patch
Size: 4246 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230320/6007bc3f/attachment.bin>


More information about the llvm-commits mailing list