commit 0c520cd32df1dd38fdedf2ace388b465fab69b80 (tree)
parent ba967ae9a1eada3a08803470f557bafcfb69151e
Author: Frank Denis <github@pureftpd.org>
Date: Wed, 11 Nov 2020 17:07:56 +0100
Enable loop interleaving when unrolling is enabled
This mimics clang's default behavior.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/zig_llvm.cpp b/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;