Commit c8b6e407ba

Frank Denis <github@pureftpd.org>
2020-11-11 17:07:56
Enable loop interleaving when unrolling is enabled
This mimics clang's default behavior.
1 parent 9e1e91d
Changed files (1)
src/zig_llvm.cpp
@@ -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;