[PATCH] D123818: [InstCombine] Fold strnlen calls in equality to zero.

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 14:29:12 PDT 2022


xbolva00 added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/strnlen-5.ll:42
 
 ; Fold strnlen(ax, 1) == 0 to *ax == 0.
 
----------------
What about “strnlen(…) < 1” ? Do we have such test?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123818/new/

https://reviews.llvm.org/D123818



More information about the llvm-commits mailing list