Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

Option /iface:cvf prevents inlining.

Intel_C_Intel
Employee
508 Views
Hello.
In the version 0035 of the Intel Visual Fortran Compiler 8.0, I have seen that a function may be inlined when compiled with the option /Qip. However, if the same program is being compiled with /Qip /iface:cvf, then the function is not inlined. The mangling of the function is _fun in the first case and _fun@4 in the second case that is not inlined.
Why does this happen? This can be a little irritating as the function not being inlined is not vectorised, that is the inlined version of the function results in assembly instructionslike divpd (two double precision divisions in parallell), while the not inlined version results in assembly instructions like divsd (one double precision division only). Thus, the efficiency of the program is being reduced by at lest 50%.
Best regards,
Lars Petter Endresen
0 Kudos
1 Reply
Steven_L_Intel1
Employee
508 Views
A brief experiment of my own using 8.0.044 does not show this to happen. If you still see it in a current version, please submit an example to Intel Premier Support.
0 Kudos
Reply