brintos

brintos / llvm-project-archived public Read only

0
0
Text · 460 B · e1877b0 Raw
16 lines · plain
1; RUN: opt < %s -passes="print<inline-cost>" 2>&1 | FileCheck %s2 3; CHECK-LABEL: @foo4; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {{.*}}, cost delta = {{.*}}, simplified to ptr inttoptr (i64 754974760 to ptr)5 6define ptr @foo(i64 %0) {7  %2 = inttoptr i64 754974720 to ptr8  %3 = getelementptr ptr addrspace(1), ptr %2, i64 %09  ret ptr %310}11 12define ptr @main() {13  %1 = call ptr @foo(i64 5)14  ret ptr %115}16