mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
Disallow Early CSE on -debug builds
This commit is contained in:
@@ -62,9 +62,11 @@ void lb_basic_populate_function_pass_manager(LLVMPassManagerRef fpm, i32 optimiz
|
||||
LLVMAddPromoteMemoryToRegisterPass(fpm);
|
||||
LLVMAddMergedLoadStoreMotionPass(fpm);
|
||||
LLVM_ADD_CONSTANT_VALUE_PASS(fpm);
|
||||
if (!build_context.ODIN_DEBUG) {
|
||||
LLVMAddEarlyCSEPass(fpm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void lb_populate_function_pass_manager(lbModule *m, LLVMPassManagerRef fpm, bool ignore_memcpy_pass, i32 optimization_level) {
|
||||
// NOTE(bill): Treat -opt:3 as if it was -opt:2
|
||||
|
||||
Reference in New Issue
Block a user