If both operands are loads from stores in memory we can't use movlpd/movlps
authorEric Christopher <echristo@apple.com>
Sun, 20 Feb 2011 05:04:42 +0000 (05:04 +0000)
committerEric Christopher <echristo@apple.com>
Sun, 20 Feb 2011 05:04:42 +0000 (05:04 +0000)
commit893a882d0944ac0b7dc22aecf8c649fb4dd7d316
tree6f617a0d826aaea60d5492997ad15fbc0041e182
parentebccf0891a2f6b75c2ac8de97557ca0cf5ad61c3
If both operands are loads from stores in memory we can't use movlpd/movlps
since one needs to be a register operand. Just use movss instead of forcing
an operand into a register.

Fixes PR9239

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp