[all-commits] [llvm/llvm-project] 0f0887: [InstCombine] Add additional memchr test (NFC)
Martin Sebor via All-commits
all-commits at lists.llvm.org
Mon Apr 4 01:41:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f088757449d63182fb424dce7856213739c563e
https://github.com/llvm/llvm-project/commit/0f088757449d63182fb424dce7856213739c563e
Author: Martin Sebor <msebor at redhat.com>
Date: 2022-04-04 (Mon, 04 Apr 2022)
Changed paths:
M llvm/test/Transforms/InstCombine/memchr-2.ll
Log Message:
-----------
[InstCombine] Add additional memchr test (NFC)
And fix some test names / comments.
Commit: d18991debfde6be335a14af3c7d2dcdecbcd758d
https://github.com/llvm/llvm-project/commit/d18991debfde6be335a14af3c7d2dcdecbcd758d
Author: Martin Sebor <msebor at redhat.com>
Date: 2022-04-04 (Mon, 04 Apr 2022)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
M llvm/test/Transforms/InstCombine/memchr-3.ll
M llvm/test/Transforms/InstCombine/memchr.ll
Log Message:
-----------
[SimplifyLibCalls] Fold memchr() with size 1
If the memchr() size is 1, then we can convert the call into a
single-byte comparison. This works even if both the string and the
character are unknown.
Split off from https://reviews.llvm.org/D122836.
Compare: https://github.com/llvm/llvm-project/compare/8cd189272599...d18991debfde
More information about the All-commits
mailing list