OSDN Git Service

[ConstantHoisting][X86] Improve the cost model for small constants with large types...
authorJuergen Ributzka <juergen@apple.com>
Tue, 10 Jun 2014 00:32:29 +0000 (00:32 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 10 Jun 2014 00:32:29 +0000 (00:32 +0000)
commit8b9e31c6e274d71ec91e3a2c88851de8675a43fd
tree9e0da99cee6c464860dda1bafc12fe73cf634581
parent9de6eef6d033a187ec887cff42e742add92eca6e
[ConstantHoisting][X86] Improve the cost model for small constants with large types (i64 and above).

This improves the X86 cost model for small constants with large types. Before
this commit we would even hoist trivial constants such as i96 2.

This is related to <rdar://problem/17070936>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210504 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Transforms/ConstantHoisting/X86/large-immediate.ll
test/Transforms/ConstantHoisting/X86/stackmap.ll