[llvm-commits] [llvm] r57305 - /llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
Nuno Lopes
nunoplopes at sapo.pt
Wed Oct 8 11:45:59 PDT 2008
Author: nlopes
Date: Wed Oct 8 13:45:59 2008
New Revision: 57305
URL: http://llvm.org/viewvc/llvm-project?rev=57305&view=rev
Log:
dont specialize weak functions and the like
Modified:
llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp?rev=57305&r1=57304&r2=57305&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PartialSpecialization.cpp Wed Oct 8 13:45:59 2008
@@ -108,7 +108,7 @@
bool Changed = false;
for (Module::iterator I = M.begin(); I != M.end(); ++I) {
Function &F = *I;
- if (F.isDeclaration()) continue;
+ if (F.isDeclaration() || F.mayBeOverridden()) continue;
SmallVector<int, 6> interestingArgs;
scanForInterest(F, interestingArgs);
More information about the llvm-commits
mailing list