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

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 17 15:10:20 PDT 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.367 -> 1.368
---
Log message:

Fix handling of calls in functions that use vectors.  This fixes a crash on
the code in GCC PR26546: http://llvm.cs.uiuc.edu/PR26546 .


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

 LegalizeDAG.cpp |   14 +-------------
 1 files changed, 1 insertion(+), 13 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.367 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.368
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.367	Mon Apr 17 14:21:01 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Mon Apr 17 17:10:08 2006
@@ -433,19 +433,7 @@
   if (OperandsLeadToDest) return true;
 
   // Okay, this node looks safe, legalize it and return false.
-  switch (getTypeAction(N->getValueType(0))) {
-  case Legal:
-    LegalizeOp(SDOperand(N, 0));
-    break;
-  case Promote:
-    PromoteOp(SDOperand(N, 0));
-    break;
-  case Expand: {
-    SDOperand X, Y;
-    ExpandOp(SDOperand(N, 0), X, Y);
-    break;
-  }
-  }
+  HandleOp(SDOperand(N, 0));
   return false;
 }
 






More information about the llvm-commits mailing list