HLS icon indicating copy to clipboard operation
HLS copied to clipboard

Turn off all performance optimizations

Open HSpass21 opened this issue 3 years ago • 1 comments

Hi,

I notice even if clang -O0 is selected and no LLVM_CUSTOM_OPT passes are used, Xilinx Vitis applies multiple optimizations when converting the user input llvm IR into a.g.ld.6.user.bc. Can you guide in detail how to turn off all optimizations to note the rtl synthesis of just the input llvm IR (without performance optimizations enforced)?

HSpass21 avatar Jun 22 '22 13:06 HSpass21

Hello,

Unfortunately, there is no such control, as the rest of the compilation process need those to function properly. You can access a.g.ld.0.bc if you absolutely need to look at the IR before any optimizations but it's extremely verbose due to how Clang function.

aisoard avatar Jun 22 '22 17:06 aisoard