[PATCH] D123820: [InstCombine] Fold strnlen of strings at offsets and unknown bounds.

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 13:31:57 PDT 2022


msebor created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
msebor requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch in the `strnlen` series enables the handling of calls with constant arrays and variable offsets and variable bounds.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123820

Files:
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/strnlen-3.ll
  llvm/test/Transforms/InstCombine/strnlen-4.ll
  llvm/test/Transforms/InstCombine/strnlen-5.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123820.422951.patch
Type: text/x-patch
Size: 4999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/7d6d600c/attachment.bin>


More information about the llvm-commits mailing list