brintos

brintos / llvm-project-archived public Read only

0
0
Text · 503 B · d4a57d1 Raw
12 lines · plain
1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s2 3; Test that the cost heuristic for a folded load works also for a pointer operand.4define void @fun0(ptr %lhs, ptr %rhs_ptr) {5  %rhs = load ptr, ptr %rhs_ptr6  %c = icmp eq ptr %lhs, %rhs7  ret void8; CHECK: function 'fun0'9; CHECK: Cost Model: Found an estimated cost of 0 for instruction:   %rhs = load10; CHECK: Cost Model: Found an estimated cost of 1 for instruction:   %c = icmp11}12