[mips] Handle undef when extracting subregs from FP64 registers.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 12 Oct 2015 13:55:44 +0000 (13:55 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 12 Oct 2015 13:55:44 +0000 (13:55 +0000)
commit75475edb1f3f053d2de4a56e38378a7a3ef61204
treef8e2d353c2ab13358fd2dbb2f0bbdff24199cacd
parent30430397eaa5d5baf1cc8126b5cd52229ccd62ac
[mips] Handle undef when extracting subregs from FP64 registers.

Summary:
This removes unnecessary instructions when extracting from an undefined register
and also fixes a crash for O32 when passing undef to a double argument in
held in integer registers.

Reviewers: vkalintiris

Subscribers: llvm-commits, zoran.jovanovic, petarj

Differential Revision: http://reviews.llvm.org/D13467

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250039 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSEFrameLowering.cpp
test/CodeGen/Mips/llvm-ir/call.ll