aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-08-27 14:13:07 +0100
committerFlorian Hahn <flo@fhahn.com>2020-08-27 15:19:45 +0100
commit419c6948df420dc2638e74a2b409e1d117256050 (patch)
tree5663491409a0901a8affcb81f1250c4083d21161 /clang/lib/Frontend/CompilerInvocation.cpp
parent5b2b754565602a8b49b68967e1810f592f175d6b (diff)
downloadllvm-419c6948df420dc2638e74a2b409e1d117256050.zip
llvm-419c6948df420dc2638e74a2b409e1d117256050.tar.gz
llvm-419c6948df420dc2638e74a2b409e1d117256050.tar.bz2
[SimplifyLibCalls] Remove over-eager early return in strlen optzns.
Currently we bail out early for strlen calls with a GEP operand, if none of the GEP specific optimizations fire. But there could be later optimizations that still apply, which we currently miss out on. An example is that we do not apply the following optimization strlen(x) == 0 --> *x == 0 Unless I am missing something, there seems to be no reason for bailing out early there. Fixes PR47149. Reviewed By: lebedev.ri, xbolva00 Differential Revision: https://reviews.llvm.org/D85886
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions