[llvm-commits] [llvm] r78543 - /llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Aug 9 15:37:07 PDT 2009
Author: d0k
Date: Sun Aug 9 17:37:07 2009
New Revision: 78543
URL: http://llvm.org/viewvc/llvm-project?rev=78543&view=rev
Log:
Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by Yonggang Luo!
Modified:
llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp?rev=78543&r1=78542&r2=78543&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaISelDAGToDAG.cpp Sun Aug 9 17:37:07 2009
@@ -117,7 +117,7 @@
uint64_t complow = 1 << (63 - at);
uint64_t comphigh = 1 << (64 - at);
//cerr << x << ":" << complow << ":" << comphigh << "\n";
- if (abs(complow - x) <= abs(comphigh - x))
+ if (abs64(complow - x) <= abs64(comphigh - x))
return complow;
else
return comphigh;
More information about the llvm-commits
mailing list