diff options
author | Martin Sebor <msebor@redhat.com> | 2022-07-01 10:09:42 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2022-07-01 11:10:00 -0600 |
commit | 0d68ff87d2b03522ac43646a491d731586518e4c (patch) | |
tree | 9f2e7c47b9550a87413668ceb6a3b30e8e548b8c /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 554aea52d79ebd9353911ecf2ffe14aca132f452 (diff) | |
download | llvm-0d68ff87d2b03522ac43646a491d731586518e4c.zip llvm-0d68ff87d2b03522ac43646a491d731586518e4c.tar.gz llvm-0d68ff87d2b03522ac43646a491d731586518e4c.tar.bz2 |
[InstCombine] Transform strrchr to memrchr for constant strings
Add an emitter for the memrchr common extension and simplify the strrchr
call handler to use it. This enables transforming calls with the empty
string to the test C ? S : 0.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D128954
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions