Fix a typo in my checkin today that caused regressions. Oops!
authorNate Begeman <natebegeman@mac.com>
Thu, 7 Jul 2005 06:32:01 +0000 (06:32 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 7 Jul 2005 06:32:01 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22341 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index 5c561aa1716273e02d525b66857229642ec9bee5..fe0772000b56b64e09c287a62f83d88ff846b3b0 100644 (file)
@@ -3027,7 +3027,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
 
     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)