From: Diana Picus Date: Wed, 25 Jan 2017 07:08:53 +0000 (+0000) Subject: [ARM] GlobalISel: Bail out on Thumb. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f30b834de7a5bcd3868bf88055bb07a528689395;p=llvm [ARM] GlobalISel: Bail out on Thumb. NFC Thumb is not supported yet, so bail out early. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293029 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMCallLowering.cpp b/lib/Target/ARM/ARMCallLowering.cpp index 32b823f941d..16509564800 100644 --- a/lib/Target/ARM/ARMCallLowering.cpp +++ b/lib/Target/ARM/ARMCallLowering.cpp @@ -17,6 +17,7 @@ #include "ARMBaseInstrInfo.h" #include "ARMISelLowering.h" +#include "ARMSubtarget.h" #include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" @@ -174,6 +175,9 @@ bool ARMCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, auto DL = MIRBuilder.getMF().getDataLayout(); auto &TLI = *getTLI(); + if (TLI.getSubtarget()->isThumb()) + return false; + auto &Args = F.getArgumentList(); unsigned ArgIdx = 0; for (auto &Arg : Args) {