From 96d0c925e9f25197368e456747ce74f444e95575 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Thu, 17 May 2012 08:56:30 +0000 Subject: SelectionDAGBuilder: CaseBlock, CaseRanges and CaseCmp changed representation of Low and High from signed to unsigned. Since unsigned ints usually simpler, faster and allows to reduce some extra signed bit checks needed before <,>,<=,>= comparisons. llvm-svn: 156985 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index 8393b414926..00e7aa1c1c1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -187,7 +187,7 @@ private: assert(isa(C1.Low) && isa(C2.High)); const ConstantInt* CI1 = cast(C1.Low); const ConstantInt* CI2 = cast(C2.High); - return CI1->getValue().slt(CI2->getValue()); + return CI1->getValue().ult(CI2->getValue()); } }; -- cgit v1.2.3