projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8317e12
)
don't use llabs with apparently VC++ doesn't have
author
Chris Lattner
<sabre@nondot.org>
Thu, 20 Oct 2005 17:01:00 +0000
(17:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 20 Oct 2005 17:01:00 +0000
(17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23845
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 75f1c18a730fa040a8baf33e94fdd98cec0dd0ff..eb0b88df98afcc3b9ecb777025ea46daf590dacc 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
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