[PATCH] D129224: [InstCombine] Fold strtoul and strtoull and avoid PR #56293

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 14:11:05 PDT 2022


msebor updated this revision to Diff 443349.
msebor added a comment.

Revision 3 with one change from previous:

- Use `maxUIntN(unsigned)` instead of a case/switch statement.


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

https://reviews.llvm.org/D129224

Files:
  llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/str-int-2.ll
  llvm/test/Transforms/InstCombine/str-int-4.ll
  llvm/test/Transforms/InstCombine/str-int-5.ll
  llvm/test/Transforms/InstCombine/str-int.ll
  llvm/test/Transforms/InstCombine/strcall-no-nul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129224.443349.patch
Type: text/x-patch
Size: 43791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220708/f4b43f6a/attachment.bin>


More information about the llvm-commits mailing list