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:
bb2aff1
)
Sparc don't got not "sqrtl", bum bum bum
author
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2004 19:05:15 +0000
(19:05 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2004 19:05:15 +0000
(19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12670
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index f54dce7ca2ebb7dc64f512d9d908086609d3cfa9..77f4b1c60667407ed85347d82c72a051e79d7140 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-2042,7
+2042,7
@@
SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) {
cast<ConstantUInt>(ConstantExpr::getCast(SqrtTerm,
SqrtTerm->getType()->getUnsignedVersion()));
uint64_t SqrtValV = SqrtVal->getValue();
- uint64_t SqrtValV2 = (uint64_t)sqrt
l
(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 ||