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

Anton Korobeynikov asl at math.spbu.ru
Thu Apr 26 13:44:27 PDT 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.428 -> 1.429
---
Log message:

Fixx off-by-one bug, which prevents llvm-gcc bootstrap on ppc32


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

 SelectionDAGISel.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.428 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.429
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.428	Wed Apr 25 13:33:21 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Thu Apr 26 15:44:04 2007
@@ -1722,7 +1722,7 @@
        << "Low bound: " << cast<ConstantInt>(minValue)->getSExtValue() << "\n"
        << "High bound: " << cast<ConstantInt>(maxValue)->getSExtValue() << "\n";
   
-  if (range>IntPtrBits ||
+  if (range>=IntPtrBits ||
       (!(Dests.size() == 1 && numCmps >= 3) &&
        !(Dests.size() == 2 && numCmps >= 5) &&
        !(Dests.size() >= 3 && numCmps >= 6)))






More information about the llvm-commits mailing list