brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 330f47d Raw
39 lines · plain
1; RUN: llc -o - %s -mtriple=arm64-apple-ios -O3 -aarch64-enable-collect-loh | FileCheck %s2; RUN: llc -o - %s -mtriple=arm64_32-apple-watchos -O3 -aarch64-enable-collect-loh | FileCheck %s3; Check that the LOH analysis does not crash when the analysed chained4; contains instructions that are filtered out.5;6; Before the fix for <rdar://problem/16041712>, these cases were removed7; from the main container. Now, the deterministic container does not allow8; to remove arbitrary values, so we have to live with garbage values.9; <rdar://problem/16041712>10 11%"class.H4ISP::H4ISPDevice" = type { ptr, ptr, ptr, ptr }12 13%"class.H4ISP::H4ISPCameraManager" = type opaque14 15declare i32 @_ZN5H4ISP11H4ISPDevice32ISP_SelectBestMIPIFrequencyIndexEjPj(ptr)16 17@pH4ISPDevice = hidden global ptr null, align 818 19; CHECK-LABEL: _foo:20; CHECK: ret21; CHECK-NOT: .loh AdrpLdrGotLdr22define void @foo() {23entry:24  br label %if.then8325if.then83:                                        ; preds = %if.end8126  %tmp = load ptr, ptr @pH4ISPDevice, align 827  %call84 = call i32 @_ZN5H4ISP11H4ISPDevice32ISP_SelectBestMIPIFrequencyIndexEjPj(ptr %tmp) #1928  tail call void asm sideeffect "", "~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27}"()29  %tmp2 = load ptr, ptr @pH4ISPDevice, align 830  tail call void asm sideeffect "", "~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x28}"()31  %pCameraManager.i268 = getelementptr inbounds %"class.H4ISP::H4ISPDevice", ptr %tmp2, i64 0, i32 332  %tmp3 = load ptr, ptr %pCameraManager.i268, align 833  %tobool.i269 = icmp eq ptr %tmp3, null34  br i1 %tobool.i269, label %if.then83, label %end35end:36  ret void37}38 39