1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=dse -stats -S 2>&1 | FileCheck %s
6 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
9 define void @test2(ptr noalias %P, ptr noalias %C, i1 %c) {
10 ; CHECK-LABEL: @test2(
11 ; CHECK-NEXT: br i1 [[C:%.*]], label [[BB1:%.*]], label [[BB2:%.*]]
13 ; CHECK-NEXT: store i32 3, ptr [[C:%.*]]
14 ; CHECK-NEXT: br label [[BB3:%.*]]
16 ; CHECK-NEXT: store i32 4, ptr [[C]]
17 ; CHECK-NEXT: br label [[BB3]]
19 ; CHECK-NEXT: store i32 0, ptr [[P:%.*]]
20 ; CHECK-NEXT: ret void
23 br i1 %c, label %bb1, label %bb2
35 ; CHECK: 1 dse - Number of stores deleted
36 ; CHECK: 3 dse - Number of stores remaining after DSE