10000 Remove LLVMDisassembler_Option_SetInstrComments for now · randomstuff/unjit@8e7c39c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e7c39c

Browse files
author
Gabriel Corona
committed
Remove LLVMDisassembler_Option_SetInstrComments for now
It's not super useful and triggers a bug in LLVM (the process is stuck in LLVM and consumes a lot of memory) for some instructions such as: 66 0f 6c c0 punpcklqdq %xmm0,%xmm0 or 66 0f 70 c8 4e pshufd xmm1, xmm0, 0x4e
1 parent 8a88f82 commit 8e7c39c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Disassembler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ Disassembler::Disassembler(Process& process) : process_(&process)
5959
throw std::runtime_error("Could not intialize LLVM disassembler");
6060
}
6161
LLVMSetDisasmOptions(this->disassembler_,
62-
LLVMDisassembler_Option_SetInstrComments
63-
| LLVMDisassembler_Option_PrintLatency
64-
);
62+
LLVMDisassembler_Option_PrintLatency);
6563
}
6664

6765
Disassembler::~Disassembler()

0 commit comments

Comments
 (0)
0