[SLP] Add cost model for `llvm.powi.*` intrinsics (REAPPLIED)
[llvm-project.git] / llvm / test / Analysis / CostModel / SystemZ / load-ptr-cmp-fold.ll
blob17a75383a856827738dcdfb9a3d8908e88acca78
1 ; RUN: opt < %s -passes='print<cost-model>' 2>&1 -disable-output -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
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