[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp

Nate Begeman natebegeman at mac.com
Sun Aug 14 11:37:13 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.167 -> 1.168
---
Log message:

Fix last night's X86 regressions by putting code for SSE in the if(SSE)
block.  nur.


---
Diffs of the changes:  (+5 -5)

 X86ISelPattern.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.167 llvm/lib/Target/X86/X86ISelPattern.cpp:1.168
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.167	Sat Aug 13 23:36:51 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Sun Aug 14 13:37:02 2005
@@ -151,11 +151,6 @@
       setOperationAction(ISD::FP_TO_SINT       , MVT::i8   , Promote);
       setOperationAction(ISD::FP_TO_SINT       , MVT::i16  , Promote);
 
-      // Expand FP_TO_UINT into a select.
-      // FIXME: We would like to use a Custom expander here eventually to do
-      // the optimal thing for SSE vs. the default expansion in the legalizer.
-      setOperationAction(ISD::FP_TO_UINT       , MVT::i32  , Expand);
-
       setOperationAction(ISD::BRCONDTWOWAY     , MVT::Other, Expand);
       setOperationAction(ISD::MEMMOVE          , MVT::Other, Expand);
       setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16  , Expand);
@@ -199,6 +194,11 @@
         setOperationAction(ISD::SINT_TO_FP, MVT::i16, Promote);
         setOperationAction(ISD::FP_TO_SINT, MVT::i16, Promote);
 
+        // Expand FP_TO_UINT into a select.
+        // FIXME: We would like to use a Custom expander here eventually to do
+        // the optimal thing for SSE vs. the default expansion in the legalizer.
+        setOperationAction(ISD::FP_TO_UINT       , MVT::i32  , Expand);
+        
         // We don't support sin/cos/sqrt/fmod
         setOperationAction(ISD::FSIN , MVT::f64, Expand);
         setOperationAction(ISD::FCOS , MVT::f64, Expand);






More information about the llvm-commits mailing list