diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-20 17:01:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-20 17:01:00 +0000 |
commit | a6efeb01f96e17aba2f41c351635421ce00873e1 (patch) | |
tree | 37e5d43642d64ae26faa4be6120e5a8570a9c736 | |
parent | 35852fc391014f0b7b899fa37b18a90a0eada57e (diff) | |
download | bcm5719-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.cpp | 2 |
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 |