Home | History | Annotate | Download | only in DeadStoreElimination
      1 ; RUN: opt -dse -disable-output < %s
      2 ; test that we don't crash
      3 declare void @bar()
      4 
      5 define void @foo() {
      6 bb1:
      7   %memtmp3.i = alloca [21 x i8], align 1
      8   %0 = getelementptr inbounds [21 x i8]* %memtmp3.i, i64 0, i64 0
      9   br label %bb3
     10 
     11 bb2:
     12   call void @llvm.lifetime.end(i64 -1, i8* %0)
     13   br label %bb3
     14 
     15 bb3:
     16   call void @bar()
     17   call void @llvm.lifetime.end(i64 -1, i8* %0)
     18   br label %bb4
     19 
     20 bb4:
     21   ret void
     22 
     23 }
     24 
     25 declare void @llvm.lifetime.end(i64, i8* nocapture) nounwind
     26