[PATCH] D123626: [InstCombine] Fold memrchr calls with constant size of zero or one.

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


xbolva00 added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/memrchr-3.ll:91
 define i8* @fold_memrchr_ax_c_1(i32 %0) {
 ; CHECK-LABEL: @fold_memrchr_ax_c_1(
+; CHECK-NEXT:    [[MEMRCHR_CHAR0:%.*]] = load i8, i8* getelementptr inbounds ([0 x i8], [0 x i8]* @ax, i64 0, i64 0), align 1
----------------
nit: please also set some names to parameters to avoid %0, %1, etc..



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123626



More information about the llvm-commits mailing list