diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-26 20:44:04 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-26 20:44:04 +0000 |
commit | d7ae7f16597b53853965b105e263dbcfbd91017a (patch) | |
tree | 750eb5967a72862c0c1d5378f6ef7738333946c1 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 2966c9072bd154fefc202a946a48d047db92738c (diff) | |
download | bcm5719-llvm-d7ae7f16597b53853965b105e263dbcfbd91017a.tar.gz bcm5719-llvm-d7ae7f16597b53853965b105e263dbcfbd91017a.zip |
Fixx off-by-one bug, which prevents llvm-gcc bootstrap on ppc32
llvm-svn: 36490
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 80cb25e3c34..acd8b683d99 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1722,7 +1722,7 @@ bool SelectionDAGLowering::handleBitTestsSwitchCase(CaseRec& CR, << "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))) |