evstupac added a comment. Regarding performance. Almost all benchmark are build same. Some image benchmarks that uses Huffman algorithm get good improve (~5-10%): https://github.com/mozilla/mozjpeg/blob/master/jchuff.c Repository: rL LLVM https://reviews.llvm.org/D32605