[llvm-commits] [llvm] r47706 - in /llvm/trunk/lib/Target/Sparc: README.txt SparcISelDAGToDAG.cpp

Chris Lattner sabre at nondot.org
Wed Feb 27 21:44:20 PST 2008


Author: lattner
Date: Wed Feb 27 23:44:20 2008
New Revision: 47706

URL: http://llvm.org/viewvc/llvm-project?rev=47706&view=rev
Log:
fix CodeGen/Generic/2008-01-25-dag-combine-mul.ll on sparc, PR2105

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

Modified: llvm/trunk/lib/Target/Sparc/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/README.txt?rev=47706&r1=47705&r2=47706&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Sparc/README.txt (original)
+++ llvm/trunk/lib/Target/Sparc/README.txt Wed Feb 27 23:44:20 2008
@@ -7,6 +7,7 @@
 * We can fold small constant offsets into the %hi/%lo references to constant
   pool addresses as well.
 * When in V9 mode, register allocate %icc[0-3].
+* Add support for isel'ing UMUL_LOHI instead of marking it as Expand.
 * Emit the 'Branch on Integer Register with Prediction' instructions.  It's
   not clear how to write a pattern for this though:
 

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

==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp Wed Feb 27 23:44:20 2008
@@ -218,6 +218,9 @@
   setOperationAction(ISD::SRA_PARTS, MVT::i32, Expand);
   setOperationAction(ISD::SRL_PARTS, MVT::i32, Expand);
 
+  // FIXME: Sparc provides these multiplies, but we don't have them yet.
+  setOperationAction(ISD::UMUL_LOHI, MVT::i32, Expand);
+    
   // We don't have line number support yet.
   setOperationAction(ISD::LOCATION, MVT::Other, Expand);
   setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);





More information about the llvm-commits mailing list