[PATCH] D127766: [InstCombine] Fold memcmp of constant arrays and variable size
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 14:22:47 PDT 2022
msebor updated this revision to Diff 437334.
msebor added a comment.
Revision 2 of the patch including:
- Handle same arguments in the new `optimizeMemCmpVarSize` and adjust loop.
- Remove constant string handling from `optimizeMemCmpConstantSize`.
- Remove special cases from `LibCallSimplifier::optimizeMemCmpBCmpCommon`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127766/new/
https://reviews.llvm.org/D127766
Files:
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memcmp-5.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127766.437334.patch
Type: text/x-patch
Size: 13957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220615/45ab6c53/attachment.bin>
More information about the llvm-commits
mailing list