[all-commits] [llvm/llvm-project] f58cfa: [AggressiveInstCombine] Expand memchr with small ...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Tue Jul 16 09:25:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f58cfacfafda0961396f92816692e9a316dec0c2
https://github.com/llvm/llvm-project/commit/f58cfacfafda0961396f92816692e9a316dec0c2
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
A llvm/test/Transforms/AggressiveInstCombine/memchr.ll
Log Message:
-----------
[AggressiveInstCombine] Expand memchr with small constant strings (#98501)
This patch converts memchr with a small constant string into a switch.
It will reduce overhead of libcall and enable more folds (e.g.,
comparing the result with null).
References: https://en.cppreference.com/w/c/string/byte/memchr
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list