summaryrefslogtreecommitdiff
path: root/test/Analysis/CostModel/no_info.ll
blob: f3f165b1b52aed9a4d8f4c6428aae60f8132a843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -cost-model -analyze | FileCheck %s

; The cost model does not have any target information so it can't make a decision.

; -- No triple in this module --

;CHECK: Unknown cost {{.*}} add
;CHECK: Unknown cost {{.*}} ret
define i32 @no_info(i32 %arg) {
  %e = add i32 %arg, %arg
  ret i32 %e
}