1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s 2 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_ptr 6 %c = icmp eq ptr %lhs, %rhs 7 ret void 8; CHECK: function 'fun0' 9; CHECK: Cost Model: Found an estimated cost of 0 for instruction: %rhs = load 10; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c = icmp 11} 12