[mips] Remove redundant code in RetCC_MipsN. NFC.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 24 Oct 2014 13:49:54 +0000 (13:49 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 24 Oct 2014 13:49:54 +0000 (13:49 +0000)
Summary:
i32 is always promoted to i64 so it no longer makes sense to assign i32 to
registers.

Reviewers: vmedic

Reviewed By: vmedic

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220561 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsCallingConv.td

index 9e47338..c00c101 100644 (file)
@@ -141,9 +141,6 @@ def RetCC_MipsN : CallingConv<[
   CCIfSubtargetNot<"isLittle()",
       CCIfType<[i8, i16, i32, i64], CCIfInReg<CCPromoteToUpperBitsInType<i64>>>>,
 
-  // i32 are returned in registers V0, V1
-  CCIfType<[i32], CCAssignToReg<[V0, V1]>>,
-
   // i64 are returned in registers V0_64, V1_64
   CCIfType<[i64], CCAssignToReg<[V0_64, V1_64]>>,