[llvm-dev] Useless exit instruction in "main", replaceable with return inst

Dávid Bolvanský via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 3 09:24:43 PDT 2018


Hi,

LLVM optimizer seems to leave "call exit" instruction in "main" function
but it could be replaced by a return instruction.
Any reason why leave it as is or this simple optimization could be
implemented e.g. in SimplifyLibCalls?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180403/01d88af9/attachment.html>


More information about the llvm-dev mailing list