[PATCH] D122686: [InstCombine] Fold calls to strnlen (PR46455)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 04:47:16 PDT 2022
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:770
+ // Fold strlen:
+ // strlen(x) != 0 --> *x != 0
+ // strlen(x) == 0 --> *x == 0
----------------
This is an opportunity to extend this opt more
see https://github.com/llvm/llvm-project/issues/48940
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122686/new/
https://reviews.llvm.org/D122686
More information about the llvm-commits
mailing list