[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 18 00:58:03 PDT 2004
Changes in directory llvm/lib/Transforms/IPO:
FunctionResolution.cpp updated: 1.47 -> 1.48
---
Log message:
Do not function resolve intrinsics. This prevents warnings and possible bad
things from happening due to
declare bool %llvm.isunordered(double, double)
declare bool %llvm.isunordered(float, float)
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.47 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.48
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.47 Thu Jun 17 13:16:19 2004
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp Fri Jun 18 00:50:48 2004
@@ -307,7 +307,8 @@
if (F->use_empty() && F->isExternal()) {
M.getFunctionList().erase(F);
Changed = true;
- } else if (!F->hasInternalLinkage() && !F->getName().empty())
+ } else if (!F->hasInternalLinkage() && !F->getName().empty() &&
+ !F->getIntrinsicID())
Globals[F->getName()].push_back(F);
}
More information about the llvm-commits
mailing list