1 ; RUN: opt < %s -cost-model -analyze -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s
3 ; Test that the cost heuristic for a folded load works also for a pointer operand.
4 define void @fun0(i64* %lhs, i64** %rhs_ptr) {
5 %rhs = load i64*, i64** %rhs_ptr
6 %c = icmp eq i64* %lhs, %rhs
8 ; CHECK: Printing analysis 'Cost Model Analysis' for 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