summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit96d0c925e9f25197368e456747ce74f444e95575 (patch)
tree1f7ff3fabe254b7b7bd3f17a5ef8081970d7796a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parenteddc05abfce931357bd54a0bcad9320a7df90275 (diff)
downloadbcm5719-llvm-96d0c925e9f25197368e456747ce74f444e95575.tar.gz
bcm5719-llvm-96d0c925e9f25197368e456747ce74f444e95575.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h2
1 files changed, 1 insertions, 1 deletions
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<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());
}
};
OpenPOWER on IntegriCloud