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

Nate Begeman natebegeman at mac.com
Wed Jul 6 23:32:13 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.145 -> 1.146
---
Log message:

Fix a typo in my checkin today that caused regressions.  Oops!


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

 X86ISelPattern.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.145 llvm/lib/Target/X86/X86ISelPattern.cpp:1.146
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.145	Wed Jul  6 13:59:03 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Thu Jul  7 01:32:01 2005
@@ -3027,7 +3027,7 @@
 
     if (N.getOpcode() == ISD::SDIV) {
       // We can fold loads into FpDIVs, but not really into any others.
-      if (N.getValueType() == MVT::f64 || !X86ScalarSSE) {
+      if (N.getValueType() == MVT::f64 && !X86ScalarSSE) {
         // Check for reversed and unreversed DIV.
         if (isFoldableLoad(N.getOperand(0), N.getOperand(1), true)) {
           if (N.getOperand(0).getOpcode() == ISD::EXTLOAD)






More information about the llvm-commits mailing list