Enable loop interleaving when unrolling is enabled

This mimics clang's default behavior.
This commit is contained in:
Frank Denis authored and Andrew Kelley committed 2020-11-16 13:40:52 -08:00
1 parent ba967ae9a1
commit 0c520cd32d
1 file changed
+1
+1
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;