[llvm-dev] Optimizer issues on Windows

Nicholas Chapman via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 11 12:13:50 PDT 2015


I wouldn't use BBVectorize: http://forwardscattering.org/post/23

Cheers,
   nick

On 11/09/2015 12:37, Sebastian Blessing via llvm-dev wrote:
> Dear Community,
>
> The ponyc <https://github.com/CausalityLtd/ponyc/tree/llvm37> (llvm37 
> branch) project is facing an issue on Windows:
>
> When optimizations are turned on (llvm 3.7.0-final and more 
> specifically 
> <https://github.com/CausalityLtd/ponyc/blob/llvm37/src/libponyc/codegen/genopt.cc>, 
> opt-level 3,  BBVectorize, LoopVectorize, SLPVectorize, RerollLoops, 
> LoadCombine + a custom heap to stack pass) writing an object file 
> aborts (on Windows only) with the following fatal error:
>
> “Starting a function before ending the previous one!” at 
> MCStreamer.cpp:407 during LLVMTargetMachineEmitToFile. Verifying the 
> IR with llc raises no errors.
>
> What exact problem is being detected here and how can we get more 
> details on the location in the IR that is causing the problem?
>
> Turning off optimizations successfully writes the object file. This 
> only occurs on Windows, writing object files works fine on Linux and OS X.
>
> Is this a know issue with LLVM 3.7.0-final and how can this be fixed? 
> Is a patch required?
>
> This might be related to https://llvm.org/bugs/show_bug.cgi?id=24374.
>
> Kind regards
> Sebastian
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150911/9f842b8f/attachment.html>


More information about the llvm-dev mailing list