[CodeGen] When Promoting, don't extend the 2nd FCOPYSIGN operand.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 01:09:43 +0000 (01:09 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 01:09:43 +0000 (01:09 +0000)
commit40ded502ffd2adddc9c2adcc4a7e5f3c840f906d
treea75092de1cb9b0ac0b94476838e2526918ab79a7
parent31e0d9a2b1f9c63a4c55edaafb2578b5e9668d4a
[CodeGen] When Promoting, don't extend the 2nd FCOPYSIGN operand.

We don't care about its type, and there's even a combine that'll fold
away the FP_EXTEND if we let it run. However, until it does, we'll have
something broken like:
  (f32 (fp_extend (f64 v)))

Scalar f16 follow-up to r243924.

llvm-svn: 244858
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/test/CodeGen/AArch64/f16-instructions.ll