aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2022-07-01 10:09:42 -0600
committerMartin Sebor <msebor@redhat.com>2022-07-01 11:10:00 -0600
commit0d68ff87d2b03522ac43646a491d731586518e4c (patch)
tree9f2e7c47b9550a87413668ceb6a3b30e8e548b8c /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent554aea52d79ebd9353911ecf2ffe14aca132f452 (diff)
downloadllvm-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