[X86] Never hoist the shift value of a shift instruction.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 30 Apr 2014 19:17:32 +0000 (19:17 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 30 Apr 2014 19:17:32 +0000 (19:17 +0000)
commitc80b103a2b1659482332b41c42f49137f3a5c069
treec079a356779ab5deb88238fb2baacd5db7c69c0c
parent4aef7270c975ed62788ce5956a1763101113bc6f
[X86] Never hoist the shift value of a shift instruction.

There is no need to check if we want to hoist the immediate value of an
shift instruction. Simply return TCC_Free right away.

This change is like r206101, but for X86.

rdar://problem/16190769

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/CodeGen/X86/remat-invalid-liveness.ll
test/Transforms/ConstantHoisting/X86/large-immediate.ll [new file with mode: 0644]