1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; Eliminate the dead allocation instruction
3 ; REQUIRES: arm-registered-target
4 ; RUN: opt -codegenprepare < %s -S | FileCheck %s
6 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
7 target triple = "armv7--linux-gnueabihf"
9 @.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
14 ; CHECK-NEXT: ret void
17 %0 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32)
18 %1 = icmp ugt ptr %0, @.str
19 tail call void @llvm.assume(i1 %1)
23 declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr
24 declare void @llvm.assume(i1 noundef)