Skip to content

Commit d81532b

Browse files
committed
Address code review comments
1 parent 0e89596 commit d81532b

File tree

1 file changed

+1
-2
lines changed
  • llvm/test/Transforms/AggressiveInstCombine

1 file changed

+1
-2
lines changed

llvm/test/Transforms/AggressiveInstCombine/memchr.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,11 @@ entry:
162162
ret ptr %memchr
163163
}
164164

165-
165+
; We want to check that the compiler still calls memchr if the length is non-constant:
166166
define ptr @test_memchr_non_constant_length2(i32 %x, i64 %len) {
167167
; CHECK-LABEL: define ptr @test_memchr_non_constant_length2(
168168
; CHECK-SAME: i32 [[X:%.*]], i64 [[LEN:%.*]]) {
169169
; CHECK-NEXT: [[ENTRY:.*:]]
170-
; CHECK-NEXT: ; We want to check that the compiler still calls memchr:
171170
; CHECK-NEXT: [[MEMCHR:%.*]] = call ptr @memchr(ptr @str, i32 [[X]], i64 [[LEN]])
172171
; CHECK-NEXT: ret ptr [[MEMCHR]]
173172
;

0 commit comments

Comments
 (0)