[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 27 20:23:24 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.280 -> 1.281
---
Log message:

Eliminate the need to do another iteration of the legalizer after inserting
a libcall.


---
Diffs of the changes:  (+2 -3)

 LegalizeDAG.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.280 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.281
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.280	Fri Jan 27 21:14:31 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Fri Jan 27 22:23:12 2006
@@ -2208,7 +2208,7 @@
         // Floating point mod -> fmod libcall.
         const char *FnName = Node->getValueType(0) == MVT::f32 ? "fmodf":"fmod";
         SDOperand Dummy;
-        Result = ExpandLibCall(FnName, Node, Dummy);
+        Result = LegalizeOp(ExpandLibCall(FnName, Node, Dummy));
       }
       break;
     }
@@ -2624,7 +2624,7 @@
         default: assert(0 && "Unreachable!");
         }
         SDOperand Dummy;
-        Result = ExpandLibCall(FnName, Node, Dummy);
+        Result = LegalizeOp(ExpandLibCall(FnName, Node, Dummy));
         break;
       }
       default:
@@ -3711,7 +3711,6 @@
   }
   
   SpliceCallInto(CallInfo.second, OutChain);
-  NeedsAnotherIteration = true;
   return Result;
 }
 






More information about the llvm-commits mailing list