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

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 09:58:59 PDT 2022


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

Revision 4 with the following changes:

- correct base autodetection to consume the `0x` prefix also in base 16,
- reject more variants of empty subject sequences including sole `"+"` and `"0x"`,
- add tests for the above.


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.443996.patch
Type: text/x-patch
Size: 48868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/ae32b3e6/attachment.bin>


More information about the llvm-commits mailing list