[PATCH] D141188: [MergeICmps] Adapt to non-eq comparisons

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 7 02:44:59 PST 2023


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

Address comment
1、Add a new negative test cmp_ne_incorrect_const
2、Add new parameter **ICmpInst::Predicate Predicate** for BCECmpChain、

  simplify and mergeComparisons to pass the correct predicate.

3、Update with API Builder.CreateICmp


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141188/new/

https://reviews.llvm.org/D141188

Files:
  llvm/lib/Transforms/Scalar/MergeICmps.cpp
  llvm/test/Transforms/MergeICmps/X86/pr59740.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141188.487074.patch
Type: text/x-patch
Size: 10493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230107/2bdb5865/attachment.bin>


More information about the llvm-commits mailing list