[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 5 14:06:02 PDT 2004
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.5 -> 1.6
---
Log message:
Sparc don't got not "sqrtl", bum bum bum
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.5 llvm/lib/Analysis/ScalarEvolution.cpp:1.6
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.5 Mon Apr 5 14:00:46 2004
+++ llvm/lib/Analysis/ScalarEvolution.cpp Mon Apr 5 14:05:15 2004
@@ -2042,7 +2042,7 @@
cast<ConstantUInt>(ConstantExpr::getCast(SqrtTerm,
SqrtTerm->getType()->getUnsignedVersion()));
uint64_t SqrtValV = SqrtVal->getValue();
- uint64_t SqrtValV2 = (uint64_t)sqrtl(SqrtValV);
+ uint64_t SqrtValV2 = (uint64_t)sqrt(SqrtValV);
// The square root might not be precise for arbitrary 64-bit integer
// values. Do some sanity checks to ensure it's correct.
if (SqrtValV2*SqrtValV2 > SqrtValV ||
More information about the llvm-commits
mailing list