that was in there twice, DEBUG>=4 to see loop opt

This commit is contained in:
George Hotz
2022-10-30 15:31:39 -07:00
parent cfdf803b52
commit 8c849e637c

View File

@@ -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()