[llvm-commits] [llvm] r55711 - /llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
Devang Patel
dpatel at apple.com
Wed Sep 3 11:46:36 PDT 2008
Author: dpatel
Date: Wed Sep 3 13:46:35 2008
New Revision: 55711
URL: http://llvm.org/viewvc/llvm-project?rev=55711&view=rev
Log:
Check noinline note and ignore other notes.
Modified:
llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
Modified: llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp?rev=55711&r1=55710&r2=55711&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp Wed Sep 3 13:46:35 2008
@@ -65,7 +65,7 @@
for (Module::iterator I = M.begin(), E = M.end();
I != E; ++I)
- if (!I->isDeclaration() && I->getNotes() == FN_NOTE_NoInline)
+ if (!I->isDeclaration() && I->getNotes() & FN_NOTE_NoInline)
NeverInline.insert(I);
// Get llvm.noinline
More information about the llvm-commits
mailing list