[PATCH] D123816: [InstCombine] Fold strnlen with a bound of zero and one.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 13:10:57 PDT 2022
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/strnlen-2.ll:92
+; CHECK-NEXT: [[TMP1:%.*]] = select i1 [[C:%.*]], i64 3, i64 5
+; CHECK-NEXT: ret i64 [[TMP1]]
;
----------------
Hm, how does this one get folded? It doesn't have either 0 or 1 as the bound.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123816/new/
https://reviews.llvm.org/D123816
More information about the llvm-commits
mailing list