[X86] Implement TargetLowering::getScalingFactorCost hook.
authorQuentin Colombet <qcolombet@apple.com>
Sat, 26 Apr 2014 01:11:26 +0000 (01:11 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 26 Apr 2014 01:11:26 +0000 (01:11 +0000)
commit9e93e47b7f196893b5779090897210d750aa1c6b
tree8fbe5cc6f623d668ef2ec938ca71d2cdf844d56d
parent64e1be4bf19b03b5961ab9dc4c65857b2561126d
[X86] Implement TargetLowering::getScalingFactorCost hook.
Scaling factors are not free on X86 because every "complex" addressing mode
breaks the related instruction into 2 allocations instead of 1.

<rdar://problem/16730541>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207301 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/avoid_complex_am.ll [new file with mode: 0644]
test/CodeGen/X86/masked-iv-safe.ll