This forum has been archived. All content is frozen. Please use KDE Discuss instead.

MSVC has problems with inlining eigen functions

Tags: None
(comma "," separated)
vernal
Registered Member
Posts
37
Karma
0
This is more a bug report than an actual question.

When setting MSVC to warning level 4 and compiling a project using eigen the warning 4714 often shows up.

It says that functions that are marked for inlining are not inlined (even in spite of forceinline).

The reasons for that behaviour are given here:
http://msdn.microsoft.com/en-us/library/a98sb923(VS.80).aspx

A helpful comment about it is found in the comments on that page:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=305046

Just to make you aware that not everything is actually inlined by MSVC that should be inlined.
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Yes, we are aware of that problem. So far it was pretty much a mystery to us. Your 2nd link is very interesting, it shows why we hit this problem (SSE intrinsics used at the end of a long chain of inlined functions) and the first comment there from Microsoft acknowledges this as a MSVC bug, and says it's likely getting fixed in the next version. Great!


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Hauke
Registered Member
Posts
109
Karma
3
OS
I tried the hack of inserting SSE data types into the outermost function calls to enforce enlignment - unfortunately it did not seem to work.

Anyways thanks for the links, they were really interesting.

- Hauke
vernal
Registered Member
Posts
37
Karma
0
Hauke wrote:Anyways thanks for the links, they were really interesting.

When I can't contribute through code, I at least try to be helpful otherwise ;)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]