summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-05-17 08:56:30 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-05-17 08:56:30 +0000
commitc187df2198bc6e2b038fa2d75af974644874d26f (patch)
treef405e6f11dbc9f85bc89b968663458d9cb8f302c /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parent626b108619ec72267ff7b89d325ccf808fee88b6 (diff)
downloadllvm-c187df2198bc6e2b038fa2d75af974644874d26f.tar.gz
llvm-c187df2198bc6e2b038fa2d75af974644874d26f.tar.bz2
llvm-c187df2198bc6e2b038fa2d75af974644874d26f.tar.xz
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index 8393b41492..00e7aa1c1c 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
@@ -187,7 +187,7 @@ private:
assert(isa<ConstantInt>(C1.Low) && isa<ConstantInt>(C2.High));
const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
- return CI1->getValue().slt(CI2->getValue());
+ return CI1->getValue().ult(CI2->getValue());
}
};