llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

-inline ignores noinline attribute

Open llvmbot opened this issue 16 years ago • 5 comments

Bugzilla Link 6682
Resolution FIXED
Resolved on Mar 24, 2010 23:51
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @echristo

Extended Description

Consider the following test case:

declare void @​foo() nounwind

define void @​bar() nounwind { entry: tail call void @​foo() nounwind ret void }

define void @​bazz() nounwind { entry: tail call void @​bar() nounwind noinline ret void }

-inline inlines @​bar into @​bazz, despite the noinline attribute.

llvmbot avatar Mar 23 '10 15:03 llvmbot

Reapplied here with a small fix:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100322/098544.html

echristo avatar Mar 25 '10 06:03 echristo

Testing a fix.

echristo avatar Mar 25 '10 03:03 echristo

Seemed to have caused a problem in an apple project. Reopening and looking into it.

echristo avatar Mar 25 '10 01:03 echristo

Fixed, thanks: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100322/098426.html

lattner avatar Mar 24 '10 00:03 lattner

assigned to @echristo

llvmbot avatar Mar 23 '10 15:03 llvmbot