summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-20 17:01:00 +0000
committerChris Lattner <sabre@nondot.org>2005-10-20 17:01:00 +0000
commita6efeb01f96e17aba2f41c351635421ce00873e1 (patch)
tree37e5d43642d64ae26faa4be6120e5a8570a9c736
parent35852fc391014f0b7b899fa37b18a90a0eada57e (diff)
downloadbcm5719-llvm-a6efeb01f96e17aba2f41c351635421ce00873e1.tar.gz
bcm5719-llvm-a6efeb01f96e17aba2f41c351635421ce00873e1.zip
don't use llabs with apparently VC++ doesn't have
llvm-svn: 23845
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 75f1c18a730..eb0b88df98a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -292,7 +292,7 @@ static ms magic64(int64_t d) {
const uint64_t two63 = 9223372036854775808ULL; // 2^63
struct ms mag;
- ad = llabs(d);
+ ad = d >= 0 ? d : -d;
t = two63 + ((uint64_t)d >> 63);
anc = t - 1 - t%ad; // absolute value of nc
p = 63; // initialize p
OpenPOWER on IntegriCloud