[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 13 12:09:23 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.363 -> 1.364
---
Log message:
revert my previous switch lowering change, which miscompiles a few programs.
This will break a dj test until I have time to investigate.
---
Diffs of the changes: (+2 -2)
SelectionDAGISel.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.363 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.364
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.363 Tue Feb 13 12:10:13 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Tue Feb 13 14:09:07 2007
@@ -389,8 +389,8 @@
struct CaseCmp {
bool operator () (const Case& C1, const Case& C2) {
assert(isa<ConstantInt>(C1.first) && isa<ConstantInt>(C2.first));
- return cast<const ConstantInt>(C1.first)->getZExtValue() <
- cast<const ConstantInt>(C2.first)->getZExtValue();
+ return cast<const ConstantInt>(C1.first)->getSExtValue() <
+ cast<const ConstantInt>(C2.first)->getSExtValue();
}
};
More information about the llvm-commits
mailing list