Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.298 -> 1.299
---
Log message:

Allow custom lowering of fabs. I forgot to check in this change which
caused several test failures.


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

 LegalizeDAG.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.298 
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.299
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.298 Mon Jan 30 23:04:52 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp       Tue Jan 31 12:14:25 2006
@@ -2022,9 +2022,14 @@
     switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) {
     case TargetLowering::Promote:
     case TargetLowering::Custom:
-      assert(0 && "Cannot promote/custom handle this yet!");
+     isCustom = true;
+     // FALLTHROUGH
     case TargetLowering::Legal:
       Result = DAG.UpdateNodeOperands(Result, Tmp1);
+      if (isCustom) {
+        Tmp1 = TLI.LowerOperation(Result, DAG);
+        if (Tmp1.Val) Result = Tmp1;
+      }
       break;
     case TargetLowering::Expand:
       switch (Node->getOpcode()) {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to