1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2 ; This tests currently fails as MachineLICM does not compute register pressure
3 ; correctly. More details: llvm.org/PR23143
6 ; MachineLICM should take register pressure into account.
9 %struct.A = type { i32, i32, i32, i32, i32, i32, i32 }
11 define void @test(i1 %b, ptr %a) nounwind {
19 %0 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 1
20 %1 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 2
21 %2 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 3
22 %3 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 4
23 %4 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 5
24 %5 = getelementptr inbounds %struct.A, ptr %a, i64 0, i32 6
25 call void @assign(ptr %a)
26 call void @assign(ptr %0)
27 call void @assign(ptr %1)
28 call void @assign(ptr %2)
29 call void @assign(ptr %3)
30 call void @assign(ptr %4)
31 call void @assign(ptr %5)
32 br i1 %b, label %loop-body, label %loop-exit
38 declare void @assign(ptr)