projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MergeFunctions, tiny refactoring:
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
PartiallyInlineLibCalls.cpp
diff --git
a/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
b/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
index 7cce89e0627e6301ded31fef9da3bf146f546ee9..5c8bed585b640c54904850d8e13f7f026daa0722 100644
(file)
--- a/
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
+++ b/
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
@@
-108,6
+108,10
@@
bool PartiallyInlineLibCalls::optimizeSQRT(CallInst *Call,
if (Call->onlyReadsMemory())
return false;
+ // The call must have the expected result type.
+ if (!Call->getType()->isFloatingPointTy())
+ return false;
+
// Do the following transformation:
//
// (before)