[PATCH] D122686: [InstCombine] Fold calls to strnlen (PR46455)

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 14:14:09 PDT 2022


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

> "put the entire dynamic GEP handling behind a `!Bound` check"

@nikic is this what close to what you're looking for?


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

https://reviews.llvm.org/D122686

Files:
  llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/strlen-4.ll
  llvm/test/Transforms/InstCombine/strnlen-1.ll
  llvm/test/Transforms/InstCombine/strnlen-2.ll
  llvm/test/Transforms/InstCombine/strnlen-3.ll
  llvm/test/Transforms/InstCombine/strnlen-4.ll
  llvm/test/Transforms/InstCombine/strnlen-5.ll
  llvm/test/Transforms/InstCombine/strnlen-6.ll
  llvm/test/Transforms/InstCombine/wcslen-5.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122686.421009.patch
Type: text/x-patch
Size: 38631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/0d2a7370/attachment.bin>


More information about the llvm-commits mailing list