1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 target datalayout = "p:64:64"
6 ; This would crash - PR50836
8 define i64 @strlen(i32* %s) {
9 ; CHECK-LABEL: @strlen(
10 ; CHECK-NEXT: [[R:%.*]] = call i64 @strlen(i32* noundef nonnull dereferenceable(1) [[S:%.*]])
11 ; CHECK-NEXT: ret i64 0
13 %r = call i64 @strlen(i32* %s)