1; RUN: opt < %s -passes="print<inline-cost>" 2>&1 | FileCheck %s 2 3; CHECK-LABEL: @foo 4; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}, simplified to i8 addrspace(1)** getelementptr (i8 addrspace(1)*, i8 addrspace(1)** inttoptr (i64 754974720 to i8 addrspace(1)**), i64 5) 5 6define i8 addrspace(1)** @foo(i64 %0) { 7 %2 = inttoptr i64 754974720 to i8 addrspace(1)** 8 %3 = getelementptr i8 addrspace(1)*, i8 addrspace(1)** %2, i64 %0 9 ret i8 addrspace(1)** %3 10} 11 12define i8 addrspace(1)** @main() { 13 %1 = call i8 addrspace(1)** @foo(i64 5) 14 ret i8 addrspace(1)** %1 15} 16