[llvm] r293029 - [ARM] GlobalISel: Bail out on Thumb. NFC

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 23:08:54 PST 2017


Author: rovka
Date: Wed Jan 25 01:08:53 2017
New Revision: 293029

URL: http://llvm.org/viewvc/llvm-project?rev=293029&view=rev
Log:
[ARM] GlobalISel: Bail out on Thumb. NFC

Thumb is not supported yet, so bail out early.

Modified:
    llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp?rev=293029&r1=293028&r2=293029&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp Wed Jan 25 01:08:53 2017
@@ -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::lowerFormalArgumen
   auto DL = MIRBuilder.getMF().getDataLayout();
   auto &TLI = *getTLI<ARMTargetLowering>();
 
+  if (TLI.getSubtarget()->isThumb())
+    return false;
+
   auto &Args = F.getArgumentList();
   unsigned ArgIdx = 0;
   for (auto &Arg : Args) {




More information about the llvm-commits mailing list