[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Oct 20 10:01:12 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.48 -> 1.49
---
Log message:

don't use llabs with apparently VC++ doesn't have


---
Diffs of the changes:  (+1 -1)

 DAGCombiner.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.48 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.49
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.48	Wed Oct 19 21:15:44 2005
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp	Thu Oct 20 12:01:00 2005
@@ -292,7 +292,7 @@
   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






More information about the llvm-commits mailing list