diff options
| author | gingerBill <bill@gingerbill.org> | 2023-07-07 22:28:31 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-07-07 22:28:31 +0100 |
| commit | 1ff6212ffa32c42be86ee80292401f860435b443 (patch) | |
| tree | 6606ce9078be52a2c1815fcbdedf2bb0a84ac7ab /src/llvm_backend_opt.cpp | |
| parent | b60d29ae9a9a155308aac2e318a881bc87c6da00 (diff) | |
Always call `lb_run_remove_dead_instruction_pass` to fix `-debug` issues
Diffstat (limited to 'src/llvm_backend_opt.cpp')
| -rw-r--r-- | src/llvm_backend_opt.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/llvm_backend_opt.cpp b/src/llvm_backend_opt.cpp index 141ee88c7..54e667a0b 100644 --- a/src/llvm_backend_opt.cpp +++ b/src/llvm_backend_opt.cpp @@ -375,16 +375,6 @@ gb_internal void lb_run_function_pass_manager(LLVMPassManagerRef fpm, lbProcedur return; } LLVMRunFunctionPassManager(fpm, p->value); - switch (pass_manager_kind) { - case lbFunctionPassManager_none: - return; - case lbFunctionPassManager_default: - case lbFunctionPassManager_default_without_memcpy: - if (build_context.optimization_level < 0) { - return; - } - break; - } // NOTE(bill): LLVMAddDCEPass doesn't seem to be exported in the official DLL's for LLVM // which means we cannot rely upon it // This is also useful for read the .ll for debug purposes because a lot of instructions |