Enable loop interleaving when unrolling is enabled

This mimics clang's default behavior.
This commit is contained in:
Frank Denis 2020-11-11 17:07:56 +01:00 committed by Andrew Kelley
parent 9e1e91dafc
commit c8b6e407ba

View File

@ -221,6 +221,7 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM
PMBuilder->DisableUnrollLoops = is_debug;
PMBuilder->SLPVectorize = !is_debug;
PMBuilder->LoopVectorize = !is_debug;
PMBuilder->LoopsInterleaved = !PMBuilder->DisableUnrollLoops;
PMBuilder->RerollLoops = !is_debug;
// Leaving NewGVN as default (off) because when on it caused issue #673
//PMBuilder->NewGVN = !is_debug;