[PATCH] D143373: [InstCombine] fold icmp of the sum of ext bool based on limited range

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 18:22:04 PST 2023


bcl5980 updated this revision to Diff 497170.
bcl5980 added a comment.

use APint to compare to make it work for integer types with larger than 64bits.


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

https://reviews.llvm.org/D143373

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/test/Transforms/InstCombine/icmp-range.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143373.497170.patch
Type: text/x-patch
Size: 12984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230214/9ceab2c0/attachment.bin>


More information about the llvm-commits mailing list