From 22e939a15b6d585da0f422ba82ff9ba155779208 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Wed, 18 Jul 2018 05:19:25 +0000 Subject: Fix build failures from r337347, found by clang * Delete a no-longer-used override, and mark the other getRegisterTypeForCallingConv() as override. * SPE only supports i32, not i64, as the internal type, so simply remove the type check, so that DestReg and Opc are provably always set. GCC 6.4 did not warn about either of the above. llvm-svn: 337350 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp') diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 48355494afe..1e3e14c7114 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1237,12 +1237,6 @@ MVT PPCTargetLowering::getRegisterTypeForCallingConv(LLVMContext &Context, return PPCTargetLowering::getRegisterType(Context, VT); } -MVT PPCTargetLowering::getRegisterTypeForCallingConv(MVT VT) const { - if (Subtarget.hasSPE() && VT == MVT::f64) - return MVT::i32; - return PPCTargetLowering::getRegisterType(VT); -} - bool PPCTargetLowering::useSoftFloat() const { return Subtarget.useSoftFloat(); } -- cgit v1.2.3