aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-06 00:15:37 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-06 00:15:37 -0500
commit17e68c4a11ee44dbaf32f5d17abc30aa107a0a2d (patch)
treeb3f1f902262784cf72a91e99f5447138e5025713 /src/zig_llvm.cpp
parente08a4ea62d9814e6c0125ff467f67626f3a22e4f (diff)
downloadzig-17e68c4a11ee44dbaf32f5d17abc30aa107a0a2d.tar.gz
zig-17e68c4a11ee44dbaf32f5d17abc30aa107a0a2d.zip
disable NewGVN
closes #673
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp3
1 files changed, 2 insertions, 1 deletions
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;