From 8c849e637ce53ee89ccd2e0ef58a5e1ecd5ecfb4 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Sun, 30 Oct 2022 15:31:39 -0700 Subject: [PATCH] that was in there twice, DEBUG>=4 to see loop opt --- accel/llvm/ops_llvm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/llvm/ops_llvm.py b/accel/llvm/ops_llvm.py index 7842fb6574..0689f2a7f6 100644 --- a/accel/llvm/ops_llvm.py +++ b/accel/llvm/ops_llvm.py @@ -128,7 +128,8 @@ class LLVM: LLVM.target_machine = target.create_target_machine(opt=3) # this opt actually can change things LLVM.target_machine.add_analysis_passes(LLVM.optimizer) - #llvm.set_option('', '--debug-only=loop-vectorize') + if DEBUG >= 4: + llvm.set_option('', '--debug-only=loop-vectorize') # does this do anything? builder = llvm.create_pass_manager_builder() @@ -137,7 +138,6 @@ class LLVM: builder.slp_vectorize = 1 builder.populate(LLVM.optimizer) - LLVM.target_machine.add_analysis_passes(LLVM.optimizer) LLVM.target_machine.set_asm_verbosity(True) backing_mod = llvm.parse_assembly("") backing_mod.triple = llvm.get_process_triple()