Skip to content

Commit

Permalink
disable NewGVN
Browse files Browse the repository at this point in the history
closes #673
  • Loading branch information
andrewrk committed Jan 6, 2018
1 parent e08a4ea commit 17e68c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zig_llvm.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 17e68c4

Please sign in to comment.