From 17e68c4a11ee44dbaf32f5d17abc30aa107a0a2d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 6 Jan 2018 00:15:37 -0500 Subject: [PATCH] disable NewGVN closes #673 --- src/zig_llvm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 94d18b1d49..81e22187ed 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -126,7 +126,8 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM PMBuilder->SLPVectorize = !is_debug; PMBuilder->LoopVectorize = !is_debug; PMBuilder->RerollLoops = !is_debug; - PMBuilder->NewGVN = !is_debug; + // Leaving NewGVN as default (off) because when on it caused issue #673 + //PMBuilder->NewGVN = !is_debug; PMBuilder->DisableGVNLoadPRE = is_debug; PMBuilder->VerifyInput = assertions_on; PMBuilder->VerifyOutput = assertions_on;