[llvm-commits] [llvm] r47709 - /llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp

Chris Lattner sabre at nondot.org
Wed Feb 27 21:54:25 PST 2008


Author: lattner
Date: Wed Feb 27 23:54:25 2008
New Revision: 47709

URL: http://llvm.org/viewvc/llvm-project?rev=47709&view=rev
Log:
Sparc backend doesn't support debug info yet, mark the nodes as expand.  This fixes a crash on
test/DebugInfo/funccall.ll

Modified:
    llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp

Modified: llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp?rev=47709&r1=47708&r2=47709&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp Wed Feb 27 23:54:25 2008
@@ -242,11 +242,15 @@
   setOperationAction(ISD::STACKRESTORE      , MVT::Other, Expand);
   setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32  , Custom);
 
+  // No debug info support yet.
+  setOperationAction(ISD::LOCATION, MVT::Other, Expand);
+  setOperationAction(ISD::LABEL, MVT::Other, Expand);
+  setOperationAction(ISD::DECLARE, MVT::Other, Expand);
+    
   setStackPointerRegisterToSaveRestore(SP::O6);
 
-  if (TM.getSubtarget<SparcSubtarget>().isV9()) {
+  if (TM.getSubtarget<SparcSubtarget>().isV9())
     setOperationAction(ISD::CTPOP, MVT::i32, Legal);
-  }
   
   computeRegisterProperties();
 }





More information about the llvm-commits mailing list