• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -cost-model -analyze | FileCheck %s
2
3; The cost model does not have any target information so it just makes boring
4; assumptions.
5
6; -- No triple in this module --
7
8;CHECK: cost of 1 {{.*}} add
9;CHECK: cost of 1 {{.*}} ret
10define i32 @no_info(i32 %arg) {
11  %e = add i32 %arg, %arg
12  ret i32 %e
13}
14