@@ -53,8 +53,9 @@ define void @addr_from_arg(ptr %ptr, i1 %p) {
5353; CHECK: [[BODY_1]]:
5454; CHECK-NEXT: [[SUNKADDR:%.*]] = bitcast ptr [[PTR]] to ptr
5555; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr [[SUNKADDR]], align 4
56- ; CHECK-NEXT: [[UNUSED:%.*]] = load <4 x i32>, ptr [[PTR]], align 4
57- ; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr [[PTR]], align 4
56+ ; CHECK-NEXT: [[TMP0:%.*]] = bitcast ptr [[PTR]] to ptr
57+ ; CHECK-NEXT: [[UNUSED:%.*]] = load <4 x i32>, ptr [[TMP0]], align 4
58+ ; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr [[TMP0]], align 4
5859; CHECK-NEXT: ret void
5960;
6061entry:
@@ -84,8 +85,8 @@ define void @addr_from_global(i1 %p) {
8485; CHECK: [[BODY_1]]:
8586; CHECK-NEXT: [[GEP1:%.*]] = bitcast ptr @globalptr to ptr
8687; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr [[GEP1]], align 4
87- ; CHECK-NEXT: [[UNUSED:%.*]] = load <4 x i32>, ptr @globalptr , align 4
88- ; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr @globalptr , align 4
88+ ; CHECK-NEXT: [[UNUSED:%.*]] = load <4 x i32>, ptr [[GEP1]] , align 4
89+ ; CHECK-NEXT: store <4 x i32> zeroinitializer, ptr [[GEP1]] , align 4
8990; CHECK-NEXT: ret void
9091;
9192entry:
0 commit comments