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

Chris Lattner sabre at nondot.org
Sun Oct 22 15:47:25 PDT 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.292 -> 1.293
---
Log message:

disable this code for now, it's not yet safely updating phi nodes


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

 SelectionDAGISel.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.292 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.293
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.292	Sun Oct 22 16:36:53 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Sun Oct 22 17:47:10 2006
@@ -873,8 +873,8 @@
       Reloc = DAG.getNode(ISD::GLOBAL_OFFSET_TABLE, PTy);
     else
       Reloc = TAB;
-    ADD = DAG.getNode(ISD::ADD, PTy,
-        ((PTy != MVT::i32) ? DAG.getNode(ISD::SIGN_EXTEND, PTy, LD) : LD), Reloc);
+    ADD = (PTy != MVT::i32) ? DAG.getNode(ISD::SIGN_EXTEND, PTy, LD) : LD;
+    ADD = DAG.getNode(ISD::ADD, PTy, ADD, Reloc);
     DAG.setRoot(DAG.getNode(ISD::BRIND, MVT::Other, LD.getValue(1), ADD));
   } else {
     DAG.setRoot(DAG.getNode(ISD::BRIND, MVT::Other, LD.getValue(1), LD));
@@ -930,7 +930,7 @@
   
   // If the switch has few cases (two or less) emit a series of specific
   // tests.
-  if (Cases.size() < 3) {
+  if (0 && Cases.size() < 3) {
     // TODO: If any two of the cases has the same destination, and if one value
     // is the same as the other, but has one bit unset that the other has set,
     // use bit manipulation to do two compares at once.  For example:






More information about the llvm-commits mailing list