[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Mon Aug 1 10:47:39 PDT 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.156 -> 1.157
---
Log message:
use llabs not abs
---
Diffs of the changes: (+3 -3)
AlphaISelPattern.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.156 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.157
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.156 Thu Jul 28 13:14:47 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Mon Aug 1 12:47:28 2005
@@ -678,7 +678,7 @@
const uint64_t two63 = 9223372036854775808ULL; // 2^63
struct ms mag;
- ad = abs(d);
+ ad = llabs(d);
t = two63 + ((uint64_t)d >> 63);
anc = t - 1 - t%ad; // absolute value of nc
p = 63; // initialize p
@@ -1847,9 +1847,9 @@
//check if we can convert into a shift!
if ((CSD = dyn_cast<ConstantSDNode>(N.getOperand(1).Val)) &&
(int64_t)CSD->getSignExtended() != 0 &&
- ExactLog2(abs((int64_t)CSD->getSignExtended())) != 0)
+ ExactLog2(llabs(CSD->getSignExtended())) != 0)
{
- unsigned k = ExactLog2(abs(CSD->getSignExtended()));
+ unsigned k = ExactLog2(llabs(CSD->getSignExtended()));
Tmp1 = SelectExpr(N.getOperand(0));
if (k == 1)
Tmp2 = Tmp1;
More information about the llvm-commits
mailing list