diff options
Diffstat (limited to 'llvm/test/Transforms/ObjCARC')
-rw-r--r-- | llvm/test/Transforms/ObjCARC/allocas.ll | 30 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/basic.ll | 142 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/cfg-hazards.ll | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll | 4 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/contract-storestrong.ll | 36 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll | 8 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/escape.ll | 8 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/gvn.ll | 10 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/intrinsic-use.ll | 16 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll | 68 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll | 14 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/nested.ll | 166 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/provenance.ll | 18 | ||||
-rw-r--r-- | llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll | 6 |
14 files changed, 264 insertions, 264 deletions
diff --git a/llvm/test/Transforms/ObjCARC/allocas.ll b/llvm/test/Transforms/ObjCARC/allocas.ll index 1fbb01c47d2..ac26a097d49 100644 --- a/llvm/test/Transforms/ObjCARC/allocas.ll +++ b/llvm/test/Transforms/ObjCARC/allocas.ll @@ -56,7 +56,7 @@ entry: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %A, align 8 - %y = load i8** %A + %y = load i8*, i8** %A call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -78,7 +78,7 @@ entry: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %gep, align 8 - %y = load i8** %A + %y = load i8*, i8** %A call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -101,7 +101,7 @@ entry: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %gep, align 8 - %y = load i8** %gep + %y = load i8*, i8** %gep call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -135,7 +135,7 @@ exit: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %gep, align 8 - %y = load i8** %gep + %y = load i8*, i8** %gep call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -168,7 +168,7 @@ exit: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %gep, align 8 - %y = load i8** %gep + %y = load i8*, i8** %gep call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -191,7 +191,7 @@ entry: tail call i8* @objc_retain(i8* %x) tail call i8* @objc_retain(i8* %x) store i8* %x, i8** %A, align 8 - %y = load i8** %A + %y = load i8*, i8** %A call void @use_alloca(i8** %A) call void @objc_release(i8* %y), !clang.imprecise_release !0 call void @use_pointer(i8* %x) @@ -214,7 +214,7 @@ define void @test2a(i8* %x) { entry: %A = alloca i8* store i8* %x, i8** %A, align 8 - %y = load i8** %A + %y = load i8*, i8** %A br label %bb1 bb1: @@ -246,7 +246,7 @@ entry: %gep1 = getelementptr i8*, i8** %A, i32 0 store i8* %x, i8** %gep1, align 8 %gep2 = getelementptr i8*, i8** %A, i32 0 - %y = load i8** %gep2 + %y = load i8*, i8** %gep2 br label %bb1 bb1: @@ -278,7 +278,7 @@ entry: %gep1 = getelementptr i8*, i8** %A, i32 2 store i8* %x, i8** %gep1, align 8 %gep2 = getelementptr i8*, i8** %A, i32 2 - %y = load i8** %gep2 + %y = load i8*, i8** %gep2 tail call i8* @objc_retain(i8* %x) br label %bb1 @@ -314,7 +314,7 @@ bb1: %gepbb11 = getelementptr i8*, i8** %Abb1, i32 2 store i8* %x, i8** %gepbb11, align 8 %gepbb12 = getelementptr i8*, i8** %Abb1, i32 2 - %ybb1 = load i8** %gepbb12 + %ybb1 = load i8*, i8** %gepbb12 br label %bb3 bb2: @@ -322,7 +322,7 @@ bb2: %gepbb21 = getelementptr i8*, i8** %Abb2, i32 2 store i8* %x, i8** %gepbb21, align 8 %gepbb22 = getelementptr i8*, i8** %Abb2, i32 2 - %ybb2 = load i8** %gepbb22 + %ybb2 = load i8*, i8** %gepbb22 br label %bb3 bb3: @@ -391,7 +391,7 @@ entry: arraydestroy.body: %arraydestroy.elementPast = phi i8** [ %gep, %entry ], [ %arraydestroy.element, %arraydestroy.body ] %arraydestroy.element = getelementptr inbounds i8*, i8** %arraydestroy.elementPast, i64 -1 - %destroy_tmp = load i8** %arraydestroy.element, align 8 + %destroy_tmp = load i8*, i8** %arraydestroy.element, align 8 call void @objc_release(i8* %destroy_tmp), !clang.imprecise_release !0 %objs_ptr = getelementptr inbounds [2 x i8*], [2 x i8*]* %objs, i64 0, i64 0 %arraydestroy.cmp = icmp eq i8** %arraydestroy.element, %objs_ptr @@ -404,7 +404,7 @@ arraydestroy.done: arraydestroy.body1: %arraydestroy.elementPast1 = phi i8** [ %gep1, %arraydestroy.done ], [ %arraydestroy.element1, %arraydestroy.body1 ] %arraydestroy.element1 = getelementptr inbounds i8*, i8** %arraydestroy.elementPast1, i64 -1 - %destroy_tmp1 = load i8** %arraydestroy.element1, align 8 + %destroy_tmp1 = load i8*, i8** %arraydestroy.element1, align 8 call void @objc_release(i8* %destroy_tmp1), !clang.imprecise_release !0 %keys_ptr = getelementptr inbounds [2 x i8*], [2 x i8*]* %keys, i64 0, i64 0 %arraydestroy.cmp1 = icmp eq i8** %arraydestroy.element1, %keys_ptr @@ -470,7 +470,7 @@ entry: arraydestroy.body: %arraydestroy.elementPast = phi i8** [ %gep, %entry ], [ %arraydestroy.element, %arraydestroy.body ] %arraydestroy.element = getelementptr inbounds i8*, i8** %arraydestroy.elementPast, i64 -1 - %destroy_tmp = load i8** %arraydestroy.element, align 8 + %destroy_tmp = load i8*, i8** %arraydestroy.element, align 8 call void @objc_release(i8* %destroy_tmp), !clang.imprecise_release !0 %objs_ptr = getelementptr inbounds [2 x i8*], [2 x i8*]* %objs, i64 0, i64 0 %arraydestroy.cmp = icmp eq i8** %arraydestroy.element, %objs_ptr @@ -483,7 +483,7 @@ arraydestroy.done: arraydestroy.body1: %arraydestroy.elementPast1 = phi i8** [ %gep1, %arraydestroy.done ], [ %arraydestroy.element1, %arraydestroy.body1 ] %arraydestroy.element1 = getelementptr inbounds i8*, i8** %arraydestroy.elementPast1, i64 -1 - %destroy_tmp1 = load i8** %arraydestroy.element1, align 8 + %destroy_tmp1 = load i8*, i8** %arraydestroy.element1, align 8 call void @objc_release(i8* %destroy_tmp1), !clang.imprecise_release !0 %keys_ptr = getelementptr inbounds [2 x i8*], [2 x i8*]* %keys, i64 0, i64 0 %arraydestroy.cmp1 = icmp eq i8** %arraydestroy.element1, %keys_ptr diff --git a/llvm/test/Transforms/ObjCARC/basic.ll b/llvm/test/Transforms/ObjCARC/basic.ll index 9c91a05a6e7..be754366576 100644 --- a/llvm/test/Transforms/ObjCARC/basic.ll +++ b/llvm/test/Transforms/ObjCARC/basic.ll @@ -286,7 +286,7 @@ entry: loop: %c = bitcast i32* %x to i8* call void @objc_release(i8* %c) nounwind - %j = load volatile i1* %q + %j = load volatile i1, i1* %q br i1 %j, label %loop, label %return return: @@ -306,7 +306,7 @@ entry: loop: %c = bitcast i32* %x to i8* call void @objc_release(i8* %c) nounwind, !clang.imprecise_release !0 - %j = load volatile i1* %q + %j = load volatile i1, i1* %q br i1 %j, label %loop, label %return return: @@ -330,7 +330,7 @@ entry: loop: %a = bitcast i32* %x to i8* %0 = call i8* @objc_retain(i8* %a) nounwind - %j = load volatile i1* %q + %j = load volatile i1, i1* %q br i1 %j, label %loop, label %return return: @@ -350,7 +350,7 @@ entry: loop: %a = bitcast i32* %x to i8* %0 = call i8* @objc_retain(i8* %a) nounwind - %j = load volatile i1* %q + %j = load volatile i1, i1* %q br i1 %j, label %loop, label %return return: @@ -1366,7 +1366,7 @@ C: define void @test24(i8* %r, i8* %a) { call i8* @objc_retain(i8* %a) call void @use_pointer(i8* %r) - %q = load i8* %a + %q = load i8, i8* %a call void @objc_release(i8* %a) ret void } @@ -2005,7 +2005,7 @@ entry: ; CHECK-NOT: objc_ ; CHECK: } define void @test44(i8** %pp) { - %p = load i8** %pp + %p = load i8*, i8** %pp %q = call i8* @objc_retain(i8* %p) call void @objc_release(i8* %q) ret void @@ -2021,8 +2021,8 @@ define void @test44(i8** %pp) { ; CHECK: call void @objc_release(i8* %p) ; CHECK: } define void @test45(i8** %pp, i8** %qq) { - %p = load i8** %pp - %q = load i8** %qq + %p = load i8*, i8** %pp + %q = load i8*, i8** %qq call i8* @objc_retain(i8* %p) call void @objc_release(i8* %q) call void @use_pointer(i8* %p) @@ -2154,10 +2154,10 @@ define void @test51b(i8* %p) { ; CHECK: ret void ; CHECK: } define void @test52a(i8** %zz, i8** %pp) { - %p = load i8** %pp + %p = load i8*, i8** %pp %1 = call i8* @objc_retain(i8* %p) call void @callee() - %z = load i8** %zz + %z = load i8*, i8** %zz call void @use_pointer(i8* %z) call void @objc_release(i8* %p) ret void @@ -2171,10 +2171,10 @@ define void @test52a(i8** %zz, i8** %pp) { ; CHECK: ret void ; CHECK: } define void @test52b(i8** %zz, i8** %pp) { - %p = load i8** %pp + %p = load i8*, i8** %pp %1 = call i8* @objc_retain(i8* %p) call void @callee() - %z = load i8** %zz + %z = load i8*, i8** %zz call void @use_pointer(i8* %z) call void @objc_release(i8* %p), !clang.imprecise_release !0 ret void @@ -2189,10 +2189,10 @@ define void @test52b(i8** %zz, i8** %pp) { ; CHECK: @objc_ ; CHECK: } define void @test53(void ()** %zz, i8** %pp) { - %p = load i8** %pp + %p = load i8*, i8** %pp %1 = call i8* @objc_retain(i8* %p) call void @callee() - %z = load void ()** %zz + %z = load void ()*, void ()** %zz call void @callee_fnptr(void ()* %z) call void @objc_release(i8* %p) ret void @@ -2341,8 +2341,8 @@ entry: ; CHECK: call void @objc_release ; CHECK: } define void @test60a() { - %t = load i8** @constptr - %s = load i8** @something + %t = load i8*, i8** @constptr + %s = load i8*, i8** @something call i8* @objc_retain(i8* %s) call void @callee() call void @use_pointer(i8* %t) @@ -2356,8 +2356,8 @@ define void @test60a() { ; CHECK-NOT: call i8* @objc_rrelease ; CHECK: } define void @test60b() { - %t = load i8** @constptr - %s = load i8** @something + %t = load i8*, i8** @constptr + %s = load i8*, i8** @something call i8* @objc_retain(i8* %s) call i8* @objc_retain(i8* %s) call void @callee() @@ -2370,8 +2370,8 @@ define void @test60b() { ; CHECK-NOT: @objc_ ; CHECK: } define void @test60c() { - %t = load i8** @constptr - %s = load i8** @something + %t = load i8*, i8** @constptr + %s = load i8*, i8** @something call i8* @objc_retain(i8* %s) call void @callee() call void @use_pointer(i8* %t) @@ -2383,8 +2383,8 @@ define void @test60c() { ; CHECK-NOT: @objc_ ; CHECK: } define void @test60d() { - %t = load i8** @constptr - %s = load i8** @something + %t = load i8*, i8** @constptr + %s = load i8*, i8** @something call i8* @objc_retain(i8* %t) call void @callee() call void @use_pointer(i8* %s) @@ -2396,8 +2396,8 @@ define void @test60d() { ; CHECK-NOT: @objc_ ; CHECK: } define void @test60e() { - %t = load i8** @constptr - %s = load i8** @something + %t = load i8*, i8** @constptr + %s = load i8*, i8** @something call i8* @objc_retain(i8* %t) call void @callee() call void @use_pointer(i8* %s) @@ -2412,7 +2412,7 @@ define void @test60e() { ; CHECK-NOT: @objc_ ; CHECK: } define void @test61() { - %t = load i8** @constptr + %t = load i8*, i8** @constptr call i8* @objc_retain(i8* %t) call void @callee() call void @use_pointer(i8* %t) @@ -2432,7 +2432,7 @@ entry: loop: call i8* @objc_retain(i8* %x) - %q = load i1* %p + %q = load i1, i1* %p br i1 %q, label %loop.more, label %exit loop.more: @@ -2459,7 +2459,7 @@ entry: loop: call i8* @objc_retain(i8* %x) - %q = load i1* %p + %q = load i1, i1* %p br i1 %q, label %loop.more, label %exit loop.more: @@ -2485,7 +2485,7 @@ entry: loop: call i8* @objc_retain(i8* %x) - %q = load i1* %p + %q = load i1, i1* %p br i1 %q, label %loop.more, label %exit loop.more: @@ -2681,31 +2681,31 @@ invoke.cont: %1 = tail call i8* @objc_retain(i8* %0) nounwind tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !0, metadata !{}) tail call void @llvm.dbg.value(metadata {}* %self, i64 0, metadata !0, metadata !{}) - %ivar = load i64* @"OBJC_IVAR_$_A.myZ", align 8 + %ivar = load i64, i64* @"OBJC_IVAR_$_A.myZ", align 8 %add.ptr = getelementptr i8, i8* %0, i64 %ivar %tmp1 = bitcast i8* %add.ptr to float* - %tmp2 = load float* %tmp1, align 4 + %tmp2 = load float, float* %tmp1, align 4 %conv = fpext float %tmp2 to double %add.ptr.sum = add i64 %ivar, 4 %tmp6 = getelementptr inbounds i8, i8* %0, i64 %add.ptr.sum %2 = bitcast i8* %tmp6 to float* - %tmp7 = load float* %2, align 4 + %tmp7 = load float, float* %2, align 4 %conv8 = fpext float %tmp7 to double %add.ptr.sum36 = add i64 %ivar, 8 %tmp12 = getelementptr inbounds i8, i8* %0, i64 %add.ptr.sum36 %arrayidx = bitcast i8* %tmp12 to float* - %tmp13 = load float* %arrayidx, align 4 + %tmp13 = load float, float* %arrayidx, align 4 %conv14 = fpext float %tmp13 to double %tmp12.sum = add i64 %ivar, 12 %arrayidx19 = getelementptr inbounds i8, i8* %0, i64 %tmp12.sum %3 = bitcast i8* %arrayidx19 to float* - %tmp20 = load float* %3, align 4 + %tmp20 = load float, float* %3, align 4 %conv21 = fpext float %tmp20 to double %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([33 x i8]* @.str4, i64 0, i64 0), double %conv, double %conv8, double %conv14, double %conv21) - %ivar23 = load i64* @"OBJC_IVAR_$_A.myZ", align 8 + %ivar23 = load i64, i64* @"OBJC_IVAR_$_A.myZ", align 8 %add.ptr24 = getelementptr i8, i8* %0, i64 %ivar23 %4 = bitcast i8* %add.ptr24 to i128* - %srcval = load i128* %4, align 4 + %srcval = load i128, i128* %4, align 4 tail call void @objc_release(i8* %0) nounwind %tmp29 = trunc i128 %srcval to i64 %tmp30 = bitcast i64 %tmp29 to <2 x float> @@ -2752,7 +2752,7 @@ entry: for.body: ; preds = %entry, %for.body %i.010 = phi i64 [ %inc, %for.body ], [ 0, %entry ] %1 = tail call i8* @objc_retain(i8* %x) nounwind - %tmp5 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp5 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call = tail call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %1, i8* %tmp5) tail call void @objc_release(i8* %1) nounwind, !clang.imprecise_release !0 %inc = add nsw i64 %i.010, 1 @@ -2828,12 +2828,12 @@ entry: %tmp7 = bitcast %2* %self to i8* %tmp8 = call i8* @objc_retain(i8* %tmp7) nounwind store %4* null, %4** %err, align 8 - %tmp1 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_17", align 8 - %tmp2 = load %struct.__CFString** @kUTTypePlainText, align 8 - %tmp3 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_19", align 8 + %tmp1 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_17", align 8 + %tmp2 = load %struct.__CFString*, %struct.__CFString** @kUTTypePlainText, align 8 + %tmp3 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_19", align 8 %tmp4 = bitcast %struct._class_t* %tmp1 to i8* %call5 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp4, i8* %tmp3, %struct.__CFString* %tmp2) - %tmp5 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_21", align 8 + %tmp5 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_21", align 8 %tmp6 = bitcast %3* %pboard to i8* %call76 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp6, i8* %tmp5, i8* %call5) %tmp9 = call i8* @objc_retain(i8* %call76) nounwind @@ -2841,7 +2841,7 @@ entry: br i1 %tobool, label %end, label %land.lhs.true land.lhs.true: ; preds = %entry - %tmp11 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_23", align 8 + %tmp11 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_23", align 8 %call137 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp6, i8* %tmp11, i8* %tmp9) %tmp = bitcast i8* %call137 to %1* %tmp10 = call i8* @objc_retain(i8* %call137) nounwind @@ -2852,14 +2852,14 @@ land.lhs.true: ; preds = %entry br i1 %tobool16, label %end, label %if.then if.then: ; preds = %land.lhs.true - %tmp19 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_25", align 8 + %tmp19 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_25", align 8 %call21 = call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*)*)(i8* %call137, i8* %tmp19) %tobool22 = icmp eq i8 %call21, 0 br i1 %tobool22, label %if.then44, label %land.lhs.true23 land.lhs.true23: ; preds = %if.then - %tmp24 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_26", align 8 - %tmp26 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_28", align 8 + %tmp24 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_26", align 8 + %tmp26 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_28", align 8 %tmp27 = bitcast %struct._class_t* %tmp24 to i8* %call2822 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp27, i8* %tmp26, i8* %call137) %tmp13 = bitcast i8* %call2822 to %5* @@ -2869,38 +2869,38 @@ land.lhs.true23: ; preds = %if.then br i1 %tobool30, label %if.then44, label %if.end if.end: ; preds = %land.lhs.true23 - %tmp32 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_29", align 8 - %tmp33 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_31", align 8 + %tmp32 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_29", align 8 + %tmp33 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_31", align 8 %tmp34 = bitcast %struct._class_t* %tmp32 to i8* %call35 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp34, i8* %tmp33) - %tmp37 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_33", align 8 + %tmp37 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_33", align 8 %call3923 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call35, i8* %tmp37, i8* %call2822, i32 signext 1, %4** %err) %cmp = icmp eq i8* %call3923, null br i1 %cmp, label %if.then44, label %end if.then44: ; preds = %if.end, %land.lhs.true23, %if.then %url.025 = phi %5* [ %tmp13, %if.end ], [ %tmp13, %land.lhs.true23 ], [ null, %if.then ] - %tmp49 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_35", align 8 + %tmp49 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_35", align 8 %call51 = call %struct._NSRange bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %struct._NSRange (i8*, i8*, i64, i64)*)(i8* %call137, i8* %tmp49, i64 0, i64 0) %call513 = extractvalue %struct._NSRange %call51, 0 %call514 = extractvalue %struct._NSRange %call51, 1 - %tmp52 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_37", align 8 + %tmp52 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_37", align 8 %call548 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call137, i8* %tmp52, i64 %call513, i64 %call514) - %tmp55 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_38", align 8 - %tmp56 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_40", align 8 + %tmp55 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_38", align 8 + %tmp56 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_40", align 8 %tmp57 = bitcast %struct._class_t* %tmp55 to i8* %call58 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp57, i8* %tmp56) - %tmp59 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_42", align 8 + %tmp59 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_42", align 8 %call6110 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call548, i8* %tmp59, i8* %call58) %tmp15 = call i8* @objc_retain(i8* %call6110) nounwind call void @objc_release(i8* %call137) nounwind - %tmp64 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_46", align 8 + %tmp64 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_46", align 8 %call66 = call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*, %1*)*)(i8* %call6110, i8* %tmp64, %1* bitcast (%struct.NSConstantString* @_unnamed_cfstring_44 to %1*)) %tobool67 = icmp eq i8 %call66, 0 br i1 %tobool67, label %if.end74, label %if.then68 if.then68: ; preds = %if.then44 - %tmp70 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_48", align 8 + %tmp70 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_48", align 8 %call7220 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call6110, i8* %tmp70) %tmp16 = call i8* @objc_retain(i8* %call7220) nounwind call void @objc_release(i8* %call6110) nounwind @@ -2909,52 +2909,52 @@ if.then68: ; preds = %if.then44 if.end74: ; preds = %if.then68, %if.then44 %filename.0.in = phi i8* [ %call7220, %if.then68 ], [ %call6110, %if.then44 ] %filename.0 = bitcast i8* %filename.0.in to %1* - %tmp17 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_isEqual_" to i8**), align 16 + %tmp17 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_isEqual_" to i8**), align 16 %tmp18 = bitcast i8* %tmp17 to i8 (i8*, %struct._message_ref_t*, i8*, ...)* %call78 = call signext i8 (i8*, %struct._message_ref_t*, i8*, ...)* %tmp18(i8* %call137, %struct._message_ref_t* bitcast (%0* @"\01l_objc_msgSend_fixup_isEqual_" to %struct._message_ref_t*), i8* %filename.0.in) %tobool79 = icmp eq i8 %call78, 0 br i1 %tobool79, label %land.lhs.true80, label %if.then109 land.lhs.true80: ; preds = %if.end74 - %tmp82 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_25", align 8 + %tmp82 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_25", align 8 %call84 = call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*)*)(i8* %filename.0.in, i8* %tmp82) %tobool86 = icmp eq i8 %call84, 0 br i1 %tobool86, label %if.then109, label %if.end106 if.end106: ; preds = %land.lhs.true80 - %tmp88 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_26", align 8 - %tmp90 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_28", align 8 + %tmp88 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_26", align 8 + %tmp90 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_28", align 8 %tmp91 = bitcast %struct._class_t* %tmp88 to i8* %call9218 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp91, i8* %tmp90, i8* %filename.0.in) %tmp20 = bitcast i8* %call9218 to %5* %tmp21 = call i8* @objc_retain(i8* %call9218) nounwind %tmp22 = bitcast %5* %url.025 to i8* call void @objc_release(i8* %tmp22) nounwind - %tmp94 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_29", align 8 - %tmp95 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_31", align 8 + %tmp94 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_29", align 8 + %tmp95 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_31", align 8 %tmp96 = bitcast %struct._class_t* %tmp94 to i8* %call97 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp96, i8* %tmp95) - %tmp99 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_33", align 8 + %tmp99 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_33", align 8 %call10119 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call97, i8* %tmp99, i8* %call9218, i32 signext 1, %4** %err) %phitmp = icmp eq i8* %call10119, null br i1 %phitmp, label %if.then109, label %end if.then109: ; preds = %if.end106, %land.lhs.true80, %if.end74 %url.129 = phi %5* [ %tmp20, %if.end106 ], [ %url.025, %if.end74 ], [ %url.025, %land.lhs.true80 ] - %tmp110 = load %4** %err, align 8 + %tmp110 = load %4*, %4** %err, align 8 %tobool111 = icmp eq %4* %tmp110, null br i1 %tobool111, label %if.then112, label %if.end125 if.then112: ; preds = %if.then109 - %tmp113 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_50", align 8 - %tmp114 = load %1** @NSCocoaErrorDomain, align 8 - %tmp115 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_51", align 8 + %tmp113 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_50", align 8 + %tmp114 = load %1*, %1** @NSCocoaErrorDomain, align 8 + %tmp115 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_51", align 8 %call117 = call %1* @truncatedString(%1* %filename.0, i64 1034) - %tmp118 = load %1** @NSFilePathErrorKey, align 8 - %tmp119 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_53", align 8 + %tmp118 = load %1*, %1** @NSFilePathErrorKey, align 8 + %tmp119 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_53", align 8 %tmp120 = bitcast %struct._class_t* %tmp115 to i8* %call12113 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp120, i8* %tmp119, %1* %call117, %1* %tmp118, i8* null) - %tmp122 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_55", align 8 + %tmp122 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_55", align 8 %tmp123 = bitcast %struct._class_t* %tmp113 to i8* %call12414 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp123, i8* %tmp122, %1* %tmp114, i64 258, i8* %call12113) %tmp23 = call i8* @objc_retain(i8* %call12414) nounwind @@ -2965,11 +2965,11 @@ if.then112: ; preds = %if.then109 if.end125: ; preds = %if.then112, %if.then109 %tmp127 = phi %4* [ %tmp110, %if.then109 ], [ %tmp28, %if.then112 ] - %tmp126 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_56", align 8 - %tmp128 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_58", align 8 + %tmp126 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_56", align 8 + %tmp128 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_58", align 8 %tmp129 = bitcast %struct._class_t* %tmp126 to i8* %call13015 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %tmp129, i8* %tmp128, %4* %tmp127) - %tmp131 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_60", align 8 + %tmp131 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_60", align 8 %call13317 = call i8* (i8*, i8*, ...)* @objc_msgSend(i8* %call13015, i8* %tmp131) br label %end diff --git a/llvm/test/Transforms/ObjCARC/cfg-hazards.ll b/llvm/test/Transforms/ObjCARC/cfg-hazards.ll index 746d56df8fa..8407e446b4f 100644 --- a/llvm/test/Transforms/ObjCARC/cfg-hazards.ll +++ b/llvm/test/Transforms/ObjCARC/cfg-hazards.ll @@ -421,7 +421,7 @@ loop: store i8* %a, i8** %block, align 8 %casted_block = bitcast i8** %block to void ()* call void @block_callee(void ()* %casted_block) - %reloaded_a = load i8** %block, align 8 + %reloaded_a = load i8*, i8** %block, align 8 call void @objc_release(i8* %reloaded_a) nounwind, !clang.imprecise_release !0 br i1 undef, label %loop, label %exit diff --git a/llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll b/llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll index 078e45f5c6c..8b1a02f3feb 100644 --- a/llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll +++ b/llvm/test/Transforms/ObjCARC/contract-storestrong-ivar.ll @@ -16,11 +16,11 @@ declare void @objc_release(i8*) define hidden void @y(%0* nocapture %self, %1* %preferencesController) nounwind { entry: - %ivar = load i64* @"OBJC_IVAR_$_Controller.preferencesController", align 8 + %ivar = load i64, i64* @"OBJC_IVAR_$_Controller.preferencesController", align 8 %tmp = bitcast %0* %self to i8* %add.ptr = getelementptr inbounds i8, i8* %tmp, i64 %ivar %tmp1 = bitcast i8* %add.ptr to %1** - %tmp2 = load %1** %tmp1, align 8 + %tmp2 = load %1*, %1** %tmp1, align 8 %tmp3 = bitcast %1* %preferencesController to i8* %tmp4 = tail call i8* @objc_retain(i8* %tmp3) nounwind %tmp5 = bitcast %1* %tmp2 to i8* diff --git a/llvm/test/Transforms/ObjCARC/contract-storestrong.ll b/llvm/test/Transforms/ObjCARC/contract-storestrong.ll index c218e330a68..aadc3a26539 100644 --- a/llvm/test/Transforms/ObjCARC/contract-storestrong.ll +++ b/llvm/test/Transforms/ObjCARC/contract-storestrong.ll @@ -16,7 +16,7 @@ declare void @use_pointer(i8*) define void @test0(i8* %p) { entry: %0 = tail call i8* @objc_retain(i8* %p) nounwind - %tmp = load i8** @x, align 8 + %tmp = load i8*, i8** @x, align 8 store i8* %0, i8** @x, align 8 tail call void @objc_release(i8* %tmp) nounwind ret void @@ -27,7 +27,7 @@ entry: ; CHECK-LABEL: define void @test1(i8* %p) { ; CHECK-NEXT: entry: ; CHECK-NEXT: %0 = tail call i8* @objc_retain(i8* %p) [[NUW]] -; CHECK-NEXT: %tmp = load volatile i8** @x, align 8 +; CHECK-NEXT: %tmp = load volatile i8*, i8** @x, align 8 ; CHECK-NEXT: store i8* %0, i8** @x, align 8 ; CHECK-NEXT: tail call void @objc_release(i8* %tmp) [[NUW]] ; CHECK-NEXT: ret void @@ -35,7 +35,7 @@ entry: define void @test1(i8* %p) { entry: %0 = tail call i8* @objc_retain(i8* %p) nounwind - %tmp = load volatile i8** @x, align 8 + %tmp = load volatile i8*, i8** @x, align 8 store i8* %0, i8** @x, align 8 tail call void @objc_release(i8* %tmp) nounwind ret void @@ -46,7 +46,7 @@ entry: ; CHECK-LABEL: define void @test2(i8* %p) { ; CHECK-NEXT: entry: ; CHECK-NEXT: %0 = tail call i8* @objc_retain(i8* %p) [[NUW]] -; CHECK-NEXT: %tmp = load i8** @x, align 8 +; CHECK-NEXT: %tmp = load i8*, i8** @x, align 8 ; CHECK-NEXT: store volatile i8* %0, i8** @x, align 8 ; CHECK-NEXT: tail call void @objc_release(i8* %tmp) [[NUW]] ; CHECK-NEXT: ret void @@ -54,7 +54,7 @@ entry: define void @test2(i8* %p) { entry: %0 = tail call i8* @objc_retain(i8* %p) nounwind - %tmp = load i8** @x, align 8 + %tmp = load i8*, i8** @x, align 8 store volatile i8* %0, i8** @x, align 8 tail call void @objc_release(i8* %tmp) nounwind ret void @@ -66,7 +66,7 @@ entry: ; CHECK-LABEL: define void @test3(i8* %newValue) { ; CHECK-NEXT: entry: ; CHECK-NEXT: %x0 = tail call i8* @objc_retain(i8* %newValue) [[NUW]] -; CHECK-NEXT: %x1 = load i8** @x, align 8 +; CHECK-NEXT: %x1 = load i8*, i8** @x, align 8 ; CHECK-NEXT: store i8* %x0, i8** @x, align 8 ; CHECK-NEXT: tail call void @use_pointer(i8* %x1), !clang.arc.no_objc_arc_exceptions !0 ; CHECK-NEXT: tail call void @objc_release(i8* %x1) [[NUW]], !clang.imprecise_release !0 @@ -75,7 +75,7 @@ entry: define void @test3(i8* %newValue) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 store i8* %newValue, i8** @x, align 8 tail call void @use_pointer(i8* %x1), !clang.arc.no_objc_arc_exceptions !0 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 @@ -87,7 +87,7 @@ entry: ; CHECK-LABEL: define i1 @test4(i8* %newValue, i8* %foo) { ; CHECK-NEXT: entry: ; CHECK-NEXT: %x0 = tail call i8* @objc_retain(i8* %newValue) [[NUW]] -; CHECK-NEXT: %x1 = load i8** @x, align 8 +; CHECK-NEXT: %x1 = load i8*, i8** @x, align 8 ; CHECK-NEXT: store i8* %x0, i8** @x, align 8 ; CHECK-NEXT: %t = icmp eq i8* %x1, %foo ; CHECK-NEXT: tail call void @objc_release(i8* %x1) [[NUW]], !clang.imprecise_release !0 @@ -96,7 +96,7 @@ entry: define i1 @test4(i8* %newValue, i8* %foo) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 store i8* %newValue, i8** @x, align 8 %t = icmp eq i8* %x1, %foo tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 @@ -112,7 +112,7 @@ entry: define i1 @test5(i8* %newValue, i8* %foo) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 %t = icmp eq i8* %x1, %foo store i8* %newValue, i8** @x, align 8 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 @@ -128,7 +128,7 @@ entry: define i1 @test6(i8* %newValue, i8* %foo) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 %t = icmp eq i8* %x1, %foo store i8* %newValue, i8** @x, align 8 @@ -140,14 +140,14 @@ entry: ; CHECK-LABEL: define void @test7( ; CHECK-NEXT: entry: ; CHECK-NEXT: %0 = tail call i8* @objc_retain(i8* %p) [[NUW]] -; CHECK-NEXT: %tmp = load i8** @x, align 8 +; CHECK-NEXT: %tmp = load i8*, i8** @x, align 8 ; CHECK-NEXT: tail call void @objc_release(i8* %tmp) [[NUW]] ; CHECK-NEXT: ret void ; CHECK-NEXT: } define void @test7(i8* %p) { entry: %0 = tail call i8* @objc_retain(i8* %p) nounwind - %tmp = load i8** @x, align 8 + %tmp = load i8*, i8** @x, align 8 tail call void @objc_release(i8* %tmp) nounwind ret void } @@ -156,14 +156,14 @@ entry: ; CHECK-LABEL: define void @test8( ; CHECK-NEXT: entry: -; CHECK-NEXT: %tmp = load i8** @x, align 8 +; CHECK-NEXT: %tmp = load i8*, i8** @x, align 8 ; CHECK-NEXT: store i8* %p, i8** @x, align 8 ; CHECK-NEXT: tail call void @objc_release(i8* %tmp) [[NUW]] ; CHECK-NEXT: ret void ; CHECK-NEXT: } define void @test8(i8* %p) { entry: - %tmp = load i8** @x, align 8 + %tmp = load i8*, i8** @x, align 8 store i8* %p, i8** @x, align 8 tail call void @objc_release(i8* %tmp) nounwind ret void @@ -181,7 +181,7 @@ define i1 @test9(i8* %newValue, i8* %foo, i8* %unrelated_ptr) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind tail call void @objc_release(i8* %unrelated_ptr) nounwind, !clang.imprecise_release !0 - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 %t = icmp eq i8* %x1, %foo store i8* %newValue, i8** @x, align 8 @@ -196,7 +196,7 @@ define i1 @test10(i8* %newValue, i8* %foo, i8* %unrelated_ptr) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind call void @use_pointer(i8* %unrelated_ptr) - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 %t = icmp eq i8* %x1, %foo store i8* %newValue, i8** @x, align 8 @@ -211,7 +211,7 @@ define i1 @test11(i8* %newValue, i8* %foo, i8* %unrelated_ptr) { entry: %x0 = tail call i8* @objc_retain(i8* %newValue) nounwind %t = icmp eq i8* %newValue, %foo - %x1 = load i8** @x, align 8 + %x1 = load i8*, i8** @x, align 8 tail call void @objc_release(i8* %x1) nounwind, !clang.imprecise_release !0 store i8* %newValue, i8** @x, align 8 ret i1 %t diff --git a/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll b/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll index c72566cd206..ff9a5ef6fb1 100644 --- a/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll +++ b/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll @@ -36,8 +36,8 @@ target triple = "x86_64-apple-macosx10.9.0" define i32 @main() uwtable ssp { entry: - %tmp = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_", align 8, !dbg !37 - %tmp1 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8, !dbg !37, !invariant.load !38 + %tmp = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_", align 8, !dbg !37 + %tmp1 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8, !dbg !37, !invariant.load !38 %tmp2 = bitcast %struct._class_t* %tmp to i8*, !dbg !37 ; CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp2, i8* %tmp1) %call = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp2, i8* %tmp1), !dbg !37, !clang.arc.no_objc_arc_exceptions !38 @@ -88,8 +88,8 @@ define internal fastcc void @ThrowFunc(i8* %obj) uwtable noinline ssp { entry: %tmp = call i8* @objc_retain(i8* %obj) nounwind call void @llvm.dbg.value(metadata i8* %obj, i64 0, metadata !32, metadata !{}), !dbg !55 - %tmp1 = load %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_1", align 8, !dbg !56 - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_5", align 8, !dbg !56, !invariant.load !38 + %tmp1 = load %struct._class_t*, %struct._class_t** @"\01L_OBJC_CLASSLIST_REFERENCES_$_1", align 8, !dbg !56 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_5", align 8, !dbg !56, !invariant.load !38 %tmp3 = bitcast %struct._class_t* %tmp1 to i8*, !dbg !56 call void (i8*, i8*, %0*, %0*, ...)* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, %0*, %0*, ...)*)(i8* %tmp3, i8* %tmp2, %0* bitcast (%struct.NSConstantString* @_unnamed_cfstring_3 to %0*), %0* bitcast (%struct.NSConstantString* @_unnamed_cfstring_3 to %0*)), !dbg !56, !clang.arc.no_objc_arc_exceptions !38 call void @objc_release(i8* %obj) nounwind, !dbg !58, !clang.imprecise_release !38 diff --git a/llvm/test/Transforms/ObjCARC/escape.ll b/llvm/test/Transforms/ObjCARC/escape.ll index fe6009973b5..c7a1b03c16f 100644 --- a/llvm/test/Transforms/ObjCARC/escape.ll +++ b/llvm/test/Transforms/ObjCARC/escape.ll @@ -47,13 +47,13 @@ entry: store i8* %tmp5, i8** %block.captured, align 8 %tmp6 = bitcast <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, i8* }>* %block to i8* %tmp7 = call i8* @objc_retainBlock(i8* %tmp6) nounwind, !clang.arc.copy_on_escape !0 - %tmp8 = load %struct.__block_byref_weakLogNTimes** %byref.forwarding, align 8 + %tmp8 = load %struct.__block_byref_weakLogNTimes*, %struct.__block_byref_weakLogNTimes** %byref.forwarding, align 8 %weakLogNTimes3 = getelementptr inbounds %struct.__block_byref_weakLogNTimes, %struct.__block_byref_weakLogNTimes* %tmp8, i64 0, i32 6 %tmp9 = bitcast void (...)** %weakLogNTimes3 to i8** %tmp10 = call i8* @objc_storeWeak(i8** %tmp9, i8* %tmp7) nounwind %tmp11 = getelementptr inbounds i8, i8* %tmp7, i64 16 %tmp12 = bitcast i8* %tmp11 to i8** - %tmp13 = load i8** %tmp12, align 8 + %tmp13 = load i8*, i8** %tmp12, align 8 %tmp14 = bitcast i8* %tmp13 to void (i8*, i32)* call void %tmp14(i8* %tmp7, i32 10) nounwind, !clang.arc.no_objc_arc_exceptions !0 call void @objc_release(i8* %tmp7) nounwind, !clang.imprecise_release !0 @@ -102,13 +102,13 @@ entry: store i8* %tmp5, i8** %block.captured, align 8 %tmp6 = bitcast <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, i8* }>* %block to i8* %tmp7 = call i8* @objc_retainBlock(i8* %tmp6) nounwind, !clang.arc.copy_on_escape !0 - %tmp8 = load %struct.__block_byref_weakLogNTimes** %byref.forwarding, align 8 + %tmp8 = load %struct.__block_byref_weakLogNTimes*, %struct.__block_byref_weakLogNTimes** %byref.forwarding, align 8 %weakLogNTimes3 = getelementptr inbounds %struct.__block_byref_weakLogNTimes, %struct.__block_byref_weakLogNTimes* %tmp8, i64 0, i32 6 %tmp9 = bitcast void (...)** %weakLogNTimes3 to i8** %tmp10 = call i8* @not_really_objc_storeWeak(i8** %tmp9, i8* %tmp7) nounwind %tmp11 = getelementptr inbounds i8, i8* %tmp7, i64 16 %tmp12 = bitcast i8* %tmp11 to i8** - %tmp13 = load i8** %tmp12, align 8 + %tmp13 = load i8*, i8** %tmp12, align 8 %tmp14 = bitcast i8* %tmp13 to void (i8*, i32)* call void %tmp14(i8* %tmp7, i32 10) nounwind, !clang.arc.no_objc_arc_exceptions !0 call void @objc_release(i8* %tmp7) nounwind, !clang.imprecise_release !0 diff --git a/llvm/test/Transforms/ObjCARC/gvn.ll b/llvm/test/Transforms/ObjCARC/gvn.ll index 2d120e7345a..6f828545bc6 100644 --- a/llvm/test/Transforms/ObjCARC/gvn.ll +++ b/llvm/test/Transforms/ObjCARC/gvn.ll @@ -11,15 +11,15 @@ declare i32 @objc_sync_exit(i8*) ; CHECK: define i8* @test0(i32 %n) ; CHECK-NEXT: entry: -; CHECK-NEXT: %s = load i8** @x +; CHECK-NEXT: %s = load i8*, i8** @x ; CHECK-NOT: load ; CHECK: ret i8* %s ; CHECK-NEXT: } define i8* @test0(i32 %n) nounwind { entry: - %s = load i8** @x + %s = load i8*, i8** @x %0 = tail call i8* @objc_retain(i8* %s) nounwind - %t = load i8** @x + %t = load i8*, i8** @x ret i8* %t } @@ -33,9 +33,9 @@ entry: ; CHECK: } define i8* @test1(i32 %n) nounwind { entry: - %s = load i8** @x + %s = load i8*, i8** @x %0 = call i32 @objc_sync_enter(i8* %s) - %t = load i8** @x + %t = load i8*, i8** @x %1 = call i32 @objc_sync_exit(i8* %s) ret i8* %t } diff --git a/llvm/test/Transforms/ObjCARC/intrinsic-use.ll b/llvm/test/Transforms/ObjCARC/intrinsic-use.ll index b1e56c8e9de..d85cb3ebc59 100644 --- a/llvm/test/Transforms/ObjCARC/intrinsic-use.ll +++ b/llvm/test/Transforms/ObjCARC/intrinsic-use.ll @@ -22,13 +22,13 @@ declare void @test0_helper(i8*, i8**) ; CHECK-NEXT: store i8* %y, i8** %temp0 ; CHECK-NEXT: @objc_retain(i8* %y) ; CHECK-NEXT: call void @test0_helper -; CHECK-NEXT: [[VAL1:%.*]] = load i8** %temp0 +; CHECK-NEXT: [[VAL1:%.*]] = load i8*, i8** %temp0 ; CHECK-NEXT: call void (...)* @clang.arc.use(i8* %y) ; CHECK-NEXT: @objc_retain(i8* [[VAL1]]) ; CHECK-NEXT: @objc_release(i8* %y) ; CHECK-NEXT: store i8* [[VAL1]], i8** %temp1 ; CHECK-NEXT: call void @test0_helper -; CHECK-NEXT: [[VAL2:%.*]] = load i8** %temp1 +; CHECK-NEXT: [[VAL2:%.*]] = load i8*, i8** %temp1 ; CHECK-NEXT: call void (...)* @clang.arc.use(i8* [[VAL1]]) ; CHECK-NEXT: @objc_retain(i8* [[VAL2]]) ; CHECK-NEXT: @objc_release(i8* [[VAL1]]) @@ -47,13 +47,13 @@ entry: %1 = call i8* @objc_retain(i8* %y) nounwind store i8* %y, i8** %temp0 call void @test0_helper(i8* %x, i8** %temp0) - %val1 = load i8** %temp0 + %val1 = load i8*, i8** %temp0 %2 = call i8* @objc_retain(i8* %val1) nounwind call void (...)* @clang.arc.use(i8* %y) nounwind call void @objc_release(i8* %y) nounwind store i8* %val1, i8** %temp1 call void @test0_helper(i8* %x, i8** %temp1) - %val2 = load i8** %temp1 + %val2 = load i8*, i8** %temp1 %3 = call i8* @objc_retain(i8* %val2) nounwind call void (...)* @clang.arc.use(i8* %val1) nounwind call void @objc_release(i8* %val1) nounwind @@ -70,13 +70,13 @@ entry: ; CHECK-NEXT: store i8* %y, i8** %temp0 ; CHECK-NEXT: @objc_retain(i8* %y) ; CHECK-NEXT: call void @test0_helper -; CHECK-NEXT: [[VAL1:%.*]] = load i8** %temp0 +; CHECK-NEXT: [[VAL1:%.*]] = load i8*, i8** %temp0 ; CHECK-NEXT: call void (...)* @clang.arc.use(i8* %y) ; CHECK-NEXT: @objc_retain(i8* [[VAL1]]) ; CHECK-NEXT: @objc_release(i8* %y) ; CHECK-NEXT: store i8* [[VAL1]], i8** %temp1 ; CHECK-NEXT: call void @test0_helper -; CHECK-NEXT: [[VAL2:%.*]] = load i8** %temp1 +; CHECK-NEXT: [[VAL2:%.*]] = load i8*, i8** %temp1 ; CHECK-NEXT: call void (...)* @clang.arc.use(i8* [[VAL1]]) ; CHECK-NEXT: @objc_retain(i8* [[VAL2]]) ; CHECK-NEXT: @objc_release(i8* [[VAL1]]) @@ -93,13 +93,13 @@ entry: %1 = call i8* @objc_retain(i8* %y) nounwind store i8* %y, i8** %temp0 call void @test0_helper(i8* %x, i8** %temp0) - %val1 = load i8** %temp0 + %val1 = load i8*, i8** %temp0 %2 = call i8* @objc_retain(i8* %val1) nounwind call void (...)* @clang.arc.use(i8* %y) nounwind call void @objc_release(i8* %y) nounwind, !clang.imprecise_release !0 store i8* %val1, i8** %temp1 call void @test0_helper(i8* %x, i8** %temp1) - %val2 = load i8** %temp1 + %val2 = load i8*, i8** %temp1 %3 = call i8* @objc_retain(i8* %val2) nounwind call void (...)* @clang.arc.use(i8* %val1) nounwind call void @objc_release(i8* %val1) nounwind, !clang.imprecise_release !0 diff --git a/llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll b/llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll index 85fd06b557f..9894eb4f534 100644 --- a/llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll +++ b/llvm/test/Transforms/ObjCARC/move-and-form-retain-autorelease.ll @@ -80,20 +80,20 @@ declare i8* @objc_explicit_autorelease(i8*) define hidden %14* @foo(%15* %arg, %16* %arg2) { bb: - %tmp = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_3725", align 8 + %tmp = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_3725", align 8 %tmp4 = bitcast %15* %arg to i8* %tmp5 = tail call %18* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %18* (i8*, i8*)*)(i8* %tmp4, i8* %tmp) %tmp6 = bitcast %18* %tmp5 to i8* %tmp7 = tail call i8* @objc_retain(i8* %tmp6) nounwind - %tmp8 = load %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_40", align 8 - %tmp9 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_4227", align 8 + %tmp8 = load %2*, %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_40", align 8 + %tmp9 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_4227", align 8 %tmp10 = bitcast %2* %tmp8 to i8* %tmp11 = tail call %19* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %19* (i8*, i8*)*)(i8* %tmp10, i8* %tmp9) - %tmp12 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_4631", align 8 + %tmp12 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_4631", align 8 %tmp13 = bitcast %19* %tmp11 to i8* %tmp14 = tail call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*, %13*)*)(i8* %tmp13, i8* %tmp12, %13* bitcast (%12* @_unnamed_cfstring_386 to %13*)) %tmp15 = bitcast %16* %arg2 to i8* - %tmp16 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_count" to i8**), align 16 + %tmp16 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_count" to i8**), align 16 %tmp17 = bitcast i8* %tmp16 to i64 (i8*, %1*)* %tmp18 = tail call i64 %tmp17(i8* %tmp15, %1* bitcast (%0* @"\01l_objc_msgSend_fixup_count" to %1*)) %tmp19 = icmp eq i64 %tmp18, 0 @@ -110,104 +110,104 @@ bb22: ; preds = %bb bb25: ; preds = %bb22, %bb20 %tmp26 = phi i1 [ %tmp21, %bb20 ], [ false, %bb22 ] - %tmp27 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_188", align 8 + %tmp27 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_188", align 8 %tmp28 = tail call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp7, i8* %tmp27) %tmp29 = tail call i8* @objc_explicit_autorelease(i8* %tmp28) nounwind %tmp30 = bitcast i8* %tmp29 to %18* tail call void @objc_release(i8* %tmp7) nounwind - %tmp31 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_389", align 8 + %tmp31 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_389", align 8 %tmp32 = tail call %20* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %20* (i8*, i8*)*)(i8* %tmp29, i8* %tmp31) - %tmp33 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_391", align 8 + %tmp33 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_391", align 8 %tmp34 = bitcast %20* %tmp32 to i8* tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, %16*)*)(i8* %tmp34, i8* %tmp33, %16* %arg2) br i1 %tmp26, label %bb46, label %bb35 bb35: ; preds = %bb25 - %tmp36 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_389", align 8 + %tmp36 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_389", align 8 %tmp37 = tail call %20* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %20* (i8*, i8*)*)(i8* %tmp29, i8* %tmp36) - %tmp38 = load %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_70", align 8 - %tmp39 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_393", align 8 + %tmp38 = load %2*, %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_70", align 8 + %tmp39 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_393", align 8 %tmp40 = bitcast %2* %tmp38 to i8* %tmp41 = tail call %21* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %21* (i8*, i8*, i8)*)(i8* %tmp40, i8* %tmp39, i8 signext 1) %tmp42 = bitcast %21* %tmp41 to i8* - %tmp43 = load %13** @NSPrintHeaderAndFooter, align 8 - %tmp44 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_159", align 8 + %tmp43 = load %13*, %13** @NSPrintHeaderAndFooter, align 8 + %tmp44 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_159", align 8 %tmp45 = bitcast %20* %tmp37 to i8* tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i8*, %13*)*)(i8* %tmp45, i8* %tmp44, i8* %tmp42, %13* %tmp43) br label %bb46 bb46: ; preds = %bb35, %bb25, %bb22 %tmp47 = phi %18* [ %tmp30, %bb35 ], [ %tmp30, %bb25 ], [ %tmp23, %bb22 ] - %tmp48 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 + %tmp48 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 %tmp49 = tail call %22* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %22* (i8*, i8*)*)(i8* %tmp4, i8* %tmp48) %tmp50 = bitcast %22* %tmp49 to i8* - %tmp51 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_count" to i8**), align 16 + %tmp51 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_count" to i8**), align 16 %tmp52 = bitcast i8* %tmp51 to i64 (i8*, %1*)* %tmp53 = tail call i64 %tmp52(i8* %tmp50, %1* bitcast (%0* @"\01l_objc_msgSend_fixup_count" to %1*)) %tmp54 = icmp eq i64 %tmp53, 0 br i1 %tmp54, label %bb55, label %bb57 bb55: ; preds = %bb46 - %tmp56 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_395", align 8 + %tmp56 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_395", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*)*)(i8* %tmp4, i8* %tmp56) br label %bb57 bb57: ; preds = %bb55, %bb46 - %tmp58 = load %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_396", align 8 - %tmp59 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 + %tmp58 = load %2*, %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_396", align 8 + %tmp59 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 %tmp60 = tail call %22* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %22* (i8*, i8*)*)(i8* %tmp4, i8* %tmp59) %tmp61 = bitcast %22* %tmp60 to i8* - %tmp62 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to i8**), align 16 + %tmp62 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to i8**), align 16 %tmp63 = bitcast i8* %tmp62 to i8* (i8*, %1*, i64)* %tmp64 = tail call i8* %tmp63(i8* %tmp61, %1* bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to %1*), i64 0) - %tmp65 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_398", align 8 + %tmp65 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_398", align 8 %tmp66 = tail call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp64, i8* %tmp65) %tmp67 = bitcast i8* %tmp66 to %23* - %tmp68 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_400", align 8 + %tmp68 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_400", align 8 %tmp69 = bitcast %2* %tmp58 to i8* %tmp70 = tail call %14* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %14* (i8*, i8*, %23*, %18*)*)(i8* %tmp69, i8* %tmp68, %23* %tmp67, %18* %tmp47) %tmp71 = bitcast %14* %tmp70 to i8* ; hack to prevent the optimize from using objc_retainAutoreleasedReturnValue. %tmp71x = getelementptr i8, i8* %tmp71, i64 1 %tmp72 = tail call i8* @objc_retain(i8* %tmp71x) nounwind - %tmp73 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_402", align 8 + %tmp73 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_402", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i8)*)(i8* %tmp72, i8* %tmp73, i8 signext 1) - %tmp74 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_404", align 8 + %tmp74 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_404", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i8)*)(i8* %tmp72, i8* %tmp74, i8 signext 1) - %tmp75 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 + %tmp75 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_328", align 8 %tmp76 = tail call %22* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %22* (i8*, i8*)*)(i8* %tmp4, i8* %tmp75) %tmp77 = bitcast %22* %tmp76 to i8* - %tmp78 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to i8**), align 16 + %tmp78 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to i8**), align 16 %tmp79 = bitcast i8* %tmp78 to i8* (i8*, %1*, i64)* %tmp80 = tail call i8* %tmp79(i8* %tmp77, %1* bitcast (%0* @"\01l_objc_msgSend_fixup_objectAtIndex_" to %1*), i64 0) - %tmp81 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_406", align 8 + %tmp81 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_406", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i64)*)(i8* %tmp80, i8* %tmp81, i64 9223372036854775807) - %tmp82 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_408", align 8 + %tmp82 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_408", align 8 %tmp83 = tail call %24* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %24* (i8*, i8*)*)(i8* %tmp72, i8* %tmp82) %tmp84 = bitcast %24* %tmp83 to i8* %tmp85 = tail call i8* @objc_retain(i8* %tmp84) nounwind - %tmp86 = load %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_409", align 8 + %tmp86 = load %2*, %2** @"\01L_OBJC_CLASSLIST_REFERENCES_$_409", align 8 %tmp87 = bitcast %2* %tmp86 to i8* - %tmp88 = load i8** bitcast (%0* @"\01l_objc_msgSend_fixup_alloc" to i8**), align 16 + %tmp88 = load i8*, i8** bitcast (%0* @"\01l_objc_msgSend_fixup_alloc" to i8**), align 16 %tmp89 = bitcast i8* %tmp88 to i8* (i8*, %1*)* %tmp90 = tail call i8* %tmp89(i8* %tmp87, %1* bitcast (%0* @"\01l_objc_msgSend_fixup_alloc" to %1*)) - %tmp91 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_8", align 8 + %tmp91 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_8", align 8 %tmp92 = tail call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp90, i8* %tmp91) %tmp93 = tail call i8* @objc_explicit_autorelease(i8* %tmp92) nounwind %tmp94 = bitcast i8* %tmp93 to %25* - %tmp95 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_411", align 8 + %tmp95 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_411", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, %25*)*)(i8* %tmp85, i8* %tmp95, %25* %tmp94) tail call void @objc_release(i8* %tmp93) nounwind - %tmp96 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_148", align 8 + %tmp96 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_148", align 8 %tmp97 = tail call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*)*)(i8* %tmp4, i8* %tmp96) %tmp98 = icmp eq i8 %tmp97, 0 br i1 %tmp98, label %bb99, label %bb104 bb99: ; preds = %bb57 - %tmp100 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_413", align 8 + %tmp100 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_413", align 8 %tmp101 = tail call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*)*)(i8* %tmp85, i8* %tmp100) %tmp102 = or i64 %tmp101, 12 - %tmp103 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_415", align 8 + %tmp103 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_415", align 8 tail call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i64)*)(i8* %tmp85, i8* %tmp103, i64 %tmp102) br label %bb104 diff --git a/llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll b/llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll index e5d2f07e45a..5d19f355be3 100644 --- a/llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll +++ b/llvm/test/Transforms/ObjCARC/move-and-merge-autorelease.ll @@ -35,10 +35,10 @@ declare i8* @objc_autorelease(i8*) define hidden %0* @foo(%1* %arg, %3* %arg3) { bb: - %tmp16 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_620", align 8 + %tmp16 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_620", align 8 %tmp17 = bitcast %3* %arg3 to i8* %tmp18 = call %4* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %4* (i8*, i8*)*)(i8* %tmp17, i8* %tmp16) - %tmp19 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_622", align 8 + %tmp19 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_622", align 8 %tmp20 = bitcast %4* %tmp18 to i8* %tmp21 = call %5* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %5* (i8*, i8*)*)(i8* %tmp20, i8* %tmp19) %tmp22 = bitcast %5* %tmp21 to i8* @@ -48,11 +48,11 @@ bb: br i1 %tmp26, label %bb81, label %bb27 bb27: ; preds = %bb - %tmp29 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_11", align 8 + %tmp29 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_11", align 8 %tmp30 = bitcast %1* %arg to i8* %tmp31 = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp30, i8* %tmp29) %tmp34 = call i8* @objc_retain(i8* %tmp31) nounwind - %tmp37 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_421455", align 8 + %tmp37 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_421455", align 8 %tmp39 = call %0* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %0* (i8*, i8*)*)(i8* %tmp34, i8* %tmp37) %tmp40 = bitcast %0* %tmp39 to i8* %tmp41 = call i8* @objc_retain(i8* %tmp40) nounwind @@ -61,7 +61,7 @@ bb27: ; preds = %bb br i1 %tmp44, label %bb45, label %bb55 bb45: ; preds = %bb27 - %tmp47 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_624", align 8 + %tmp47 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_624", align 8 %tmp49 = call %0* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %0* (i8*, i8*)*)(i8* %tmp34, i8* %tmp47) %tmp51 = bitcast %0* %tmp49 to i8* %tmp52 = call i8* @objc_retain(i8* %tmp51) nounwind @@ -74,14 +74,14 @@ bb55: ; preds = %bb27, %bb45 br i1 %tmp57, label %bb76, label %bb58 bb58: ; preds = %bb55 - %tmp60 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_598", align 8 + %tmp60 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_598", align 8 %tmp61 = bitcast %0* %tmp13.0 to i8* %tmp62 = call signext i8 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8 (i8*, i8*)*)(i8* %tmp61, i8* %tmp60) %tmp64 = icmp eq i8 %tmp62, 0 br i1 %tmp64, label %bb76, label %bb65 bb65: ; preds = %bb58 - %tmp68 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_626", align 8 + %tmp68 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_626", align 8 %tmp69 = bitcast %0* %tmp13.0 to i8* %tmp70 = call %0* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to %0* (i8*, i8*, %5*)*)(i8* %tmp69, i8* %tmp68, %5* %tmp24) %tmp72 = bitcast %0* %tmp70 to i8* diff --git a/llvm/test/Transforms/ObjCARC/nested.ll b/llvm/test/Transforms/ObjCARC/nested.ll index ac0e7c783f0..fdd67f73b3a 100644 --- a/llvm/test/Transforms/ObjCARC/nested.ll +++ b/llvm/test/Transforms/ObjCARC/nested.ll @@ -37,15 +37,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -57,8 +57,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr3 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr3, align 8 + %mutationsptr3 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr3, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -67,16 +67,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp5 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp5 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call6 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp5, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call6, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -102,15 +102,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call3 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call3, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -122,8 +122,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr4 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr4, align 8 + %mutationsptr4 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr4, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -132,16 +132,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call7, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -162,20 +162,20 @@ define void @test4() nounwind { entry: %state.ptr = alloca %struct.__objcFastEnumerationState, align 8 %items.ptr = alloca [16 x i8*], align 8 - %tmp = load i8** @g, align 8 + %tmp = load i8*, i8** @g, align 8 %0 = call i8* @objc_retain(i8* %tmp) nounwind %tmp2 = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp2, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp4 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp4 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp4, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -187,8 +187,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr5 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr5, align 8 + %mutationsptr5 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr5, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -197,16 +197,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp7 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp7 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call8 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp7, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call8, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -233,15 +233,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call3 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call3, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -253,8 +253,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr4 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr4, align 8 + %mutationsptr4 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr4, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -263,16 +263,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call7, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -300,15 +300,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call3 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call3, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -320,8 +320,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr4 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr4, align 8 + %mutationsptr4 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr4, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -330,16 +330,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call7, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -369,15 +369,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call3 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call3, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -389,8 +389,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.notmutated ] - %mutationsptr4 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr4, align 8 + %mutationsptr4 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr4, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -399,16 +399,16 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 call void @use(i8* %3) %4 = add i64 %forcoll.index, 1 %exitcond = icmp eq i64 %4, %umax br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call7, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -435,15 +435,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %1 = call i8* @objc_retain(i8* %0) nounwind - %tmp2 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp2 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call3 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp2, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call3, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 %stateitems.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 1 br label %forcoll.loopbody.outer @@ -455,8 +455,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ 0, %forcoll.loopbody.outer ], [ %4, %forcoll.next ] - %mutationsptr4 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr4, align 8 + %mutationsptr4 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr4, align 8 %2 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %2, label %forcoll.notmutated, label %forcoll.mutated @@ -465,9 +465,9 @@ forcoll.mutated: br label %forcoll.notmutated forcoll.notmutated: - %stateitems = load i8*** %stateitems.ptr, align 8 + %stateitems = load i8**, i8*** %stateitems.ptr, align 8 %currentitem.ptr = getelementptr i8*, i8** %stateitems, i64 %forcoll.index - %3 = load i8** %currentitem.ptr, align 8 + %3 = load i8*, i8** %currentitem.ptr, align 8 %tobool = icmp eq i8* %3, null br i1 %tobool, label %forcoll.next, label %if.then @@ -481,7 +481,7 @@ forcoll.next: br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %1, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %5 = icmp eq i64 %call7, 0 br i1 %5, label %forcoll.empty, label %forcoll.loopbody.outer @@ -512,15 +512,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %2 = call i8* @objc_retain(i8* %0) nounwind - %tmp3 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp3 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call4 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp3, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call4, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 br label %forcoll.loopbody.outer forcoll.loopbody.outer: @@ -531,8 +531,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ %phitmp, %forcoll.notmutated.forcoll.loopbody_crit_edge ], [ 1, %forcoll.loopbody.outer ] - %mutationsptr5 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr5, align 8 + %mutationsptr5 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr5, align 8 %3 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %3, label %forcoll.notmutated, label %forcoll.mutated @@ -549,7 +549,7 @@ forcoll.notmutated.forcoll.loopbody_crit_edge: br label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %4 = icmp eq i64 %call7, 0 br i1 %4, label %forcoll.empty, label %forcoll.loopbody.outer @@ -579,15 +579,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %2 = call i8* @objc_retain(i8* %0) nounwind - %tmp3 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp3 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call4 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp3, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call4, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 br label %forcoll.loopbody.outer forcoll.loopbody.outer: @@ -598,8 +598,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ %phitmp, %forcoll.notmutated ], [ 0, %forcoll.loopbody.outer ] - %mutationsptr5 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr5, align 8 + %mutationsptr5 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr5, align 8 %3 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %3, label %forcoll.notmutated, label %forcoll.mutated @@ -613,7 +613,7 @@ forcoll.notmutated: br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %4 = icmp eq i64 %call7, 0 br i1 %4, label %forcoll.empty, label %forcoll.loopbody.outer @@ -646,15 +646,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %2 = call i8* @objc_retain(i8* %0) nounwind - %tmp3 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp3 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call4 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp3, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call4, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 br label %forcoll.loopbody.outer forcoll.loopbody.outer: @@ -665,8 +665,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ %phitmp, %forcoll.notmutated.forcoll.loopbody_crit_edge ], [ 1, %forcoll.loopbody.outer ] - %mutationsptr5 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr5, align 8 + %mutationsptr5 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr5, align 8 %3 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %3, label %forcoll.notmutated, label %forcoll.mutated @@ -683,7 +683,7 @@ forcoll.notmutated.forcoll.loopbody_crit_edge: br label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %4 = icmp eq i64 %call7, 0 br i1 %4, label %forcoll.empty, label %forcoll.loopbody.outer @@ -714,15 +714,15 @@ entry: %tmp = bitcast %struct.__objcFastEnumerationState* %state.ptr to i8* call void @llvm.memset.p0i8.i64(i8* %tmp, i8 0, i64 64, i32 8, i1 false) %2 = call i8* @objc_retain(i8* %0) nounwind - %tmp3 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp3 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call4 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp3, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %iszero = icmp eq i64 %call4, 0 br i1 %iszero, label %forcoll.empty, label %forcoll.loopinit forcoll.loopinit: %mutationsptr.ptr = getelementptr inbounds %struct.__objcFastEnumerationState, %struct.__objcFastEnumerationState* %state.ptr, i64 0, i32 2 - %mutationsptr = load i64** %mutationsptr.ptr, align 8 - %forcoll.initial-mutations = load i64* %mutationsptr, align 8 + %mutationsptr = load i64*, i64** %mutationsptr.ptr, align 8 + %forcoll.initial-mutations = load i64, i64* %mutationsptr, align 8 br label %forcoll.loopbody.outer forcoll.loopbody.outer: @@ -733,8 +733,8 @@ forcoll.loopbody.outer: forcoll.loopbody: %forcoll.index = phi i64 [ %phitmp, %forcoll.notmutated ], [ 0, %forcoll.loopbody.outer ] - %mutationsptr5 = load i64** %mutationsptr.ptr, align 8 - %statemutations = load i64* %mutationsptr5, align 8 + %mutationsptr5 = load i64*, i64** %mutationsptr.ptr, align 8 + %statemutations = load i64, i64* %mutationsptr5, align 8 %3 = icmp eq i64 %statemutations, %forcoll.initial-mutations br i1 %3, label %forcoll.notmutated, label %forcoll.mutated @@ -748,7 +748,7 @@ forcoll.notmutated: br i1 %exitcond, label %forcoll.refetch, label %forcoll.loopbody forcoll.refetch: - %tmp6 = load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 + %tmp6 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_", align 8 %call7 = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, %struct.__objcFastEnumerationState*, [16 x i8*]*, i64)*)(i8* %2, i8* %tmp6, %struct.__objcFastEnumerationState* %state.ptr, [16 x i8*]* %items.ptr, i64 16) %4 = icmp eq i64 %call7, 0 br i1 %4, label %forcoll.empty, label %forcoll.loopbody.outer @@ -796,7 +796,7 @@ entry: %foo5 = call i8* @objc_retainBlock(i8* %foo4) nounwind call void @use(i8* %foo5), !clang.arc.no_objc_arc_exceptions !0 call void @objc_release(i8* %foo5) nounwind - %strongdestroy = load i8** %foo, align 8 + %strongdestroy = load i8*, i8** %foo, align 8 call void @objc_release(i8* %strongdestroy) nounwind, !clang.imprecise_release !0 %foo10 = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_d*, i8* }>, <{ i8*, i32, i32, i8*, %struct.__block_d*, i8* }>* %block9, i64 0, i32 5 %block.isa11 = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_d*, i8* }>, <{ i8*, i32, i32, i8*, %struct.__block_d*, i8* }>* %block9, i64 0, i32 0 @@ -815,7 +815,7 @@ entry: %foo21 = call i8* @objc_retainBlock(i8* %foo20) nounwind call void @use(i8* %foo21), !clang.arc.no_objc_arc_exceptions !0 call void @objc_release(i8* %foo21) nounwind - %strongdestroy25 = load i8** %foo10, align 8 + %strongdestroy25 = load i8*, i8** %foo10, align 8 call void @objc_release(i8* %strongdestroy25) nounwind, !clang.imprecise_release !0 call void @objc_release(i8* %call) nounwind, !clang.imprecise_release !0 ret void diff --git a/llvm/test/Transforms/ObjCARC/provenance.ll b/llvm/test/Transforms/ObjCARC/provenance.ll index 937c6892435..aa5a932a86e 100644 --- a/llvm/test/Transforms/ObjCARC/provenance.ll +++ b/llvm/test/Transforms/ObjCARC/provenance.ll @@ -10,28 +10,28 @@ declare void @g(i8) define void @f(i8* %a, i8** %b, i8** %c) { - %y1 = load i8* %a + %y1 = load i8, i8* %a call void @g(i8 %y1) - %y2 = load i8** %b - %y3 = load i8** %c + %y2 = load i8*, i8** %b + %y3 = load i8*, i8** %c - %x0 = load i8* @"\01l_objc_msgSend_fixup_" + %x0 = load i8, i8* @"\01l_objc_msgSend_fixup_" call void @g(i8 %x0) - %x1 = load i8* @g1 + %x1 = load i8, i8* @g1 call void @g(i8 %x1) - %x2 = load i8* @g2 + %x2 = load i8, i8* @g2 call void @g(i8 %x2) - %x3 = load i8* @g3 + %x3 = load i8, i8* @g3 call void @g(i8 %x3) - %x4 = load i8* @g4 + %x4 = load i8, i8* @g4 call void @g(i8 %x4) - %x5 = load i8* @g5 + %x5 = load i8, i8* @g5 call void @g(i8 %x5) ret void } diff --git a/llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll b/llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll index b4f4089115e..5f5def9ff03 100644 --- a/llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll +++ b/llvm/test/Transforms/ObjCARC/retain-block-side-effects.ll @@ -6,7 +6,7 @@ ; CHECK: %tmp16 = call i8* @objc_retainBlock(i8* %tmp15) [[NUW:#[0-9]+]] ; CHECK: %tmp17 = bitcast i8* %tmp16 to void ()* -; CHECK: %tmp18 = load %struct.__block_byref_repeater** %byref.forwarding, align 8 +; CHECK: %tmp18 = load %struct.__block_byref_repeater*, %struct.__block_byref_repeater** %byref.forwarding, align 8 ; CHECK: %repeater12 = getelementptr inbounds %struct.__block_byref_repeater, %struct.__block_byref_repeater* %tmp18, i64 0, i32 6 ; CHECK: store void ()* %tmp17, void ()** %repeater12, align 8 @@ -29,9 +29,9 @@ entry: %tmp15 = bitcast <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, %0*, i8* }>* %block to i8* %tmp16 = call i8* @objc_retainBlock(i8* %tmp15) nounwind %tmp17 = bitcast i8* %tmp16 to void ()* - %tmp18 = load %struct.__block_byref_repeater** %byref.forwarding, align 8 + %tmp18 = load %struct.__block_byref_repeater*, %struct.__block_byref_repeater** %byref.forwarding, align 8 %repeater12 = getelementptr inbounds %struct.__block_byref_repeater, %struct.__block_byref_repeater* %tmp18, i64 0, i32 6 - %tmp13 = load void ()** %repeater12, align 8 + %tmp13 = load void ()*, void ()** %repeater12, align 8 store void ()* %tmp17, void ()** %repeater12, align 8 ret void } |