3 ms·Eh, compile with -O and let LLVM optimize it.by eridius 13y agoEh, compile with -O and let LLVM optimize it.ben0x539 13y agoIs `rustc --opt-level 3 --emit ir` not right?eridius 13y agoThe optimization level is given to LLVM. The IR itself should be the same for all optimization levels AFAIK.dbaupp 13y agoAlmost all LLVM optimisations map IR to IR, and --emit=ir prints the final IR just before codegen (i.e. after optimisations happen).eridius 13y agoOh? I was under the impression it was the IR that was given to LLVM to begin with. Interesting.