no_info.ll 312 B

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