[llvm-dev] Optimization levels in llvm

Siddharth Shankar Swain via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 26 02:07:50 PDT 2017


Hi all,
Can anyone tell how changing the optimization levels ( -O) in llvm changes
if the arguments are passed to a function by value or by reference? For
example if we pass an argument by value to a function can changing the
optimization level can force it to be pass by reference if at all it makes
the code optimized in some way. Please guide.
sincerely,
Siddharth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170726/73ca8256/attachment.html>


More information about the llvm-dev mailing list