Cost Model: teach the cost model about expanding integers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem
2012-11-05 21:11:10 +00:00
parent 28989889bf
commit 75138f58b0
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
; RUN: opt < %s -cost-model -analyze -mtriple=i386 -mcpu=corei7-avx | FileCheck %s
;CHECK: cost of 2 {{.*}} add
;CHECK: cost of 1 {{.*}} ret
define i32 @no_info(i32 %arg) {
%e = add i64 undef, undef
ret i32 undef
}