Add additional LoopUnswitch and LICM passes

ebfd5c1
Opened by Demi Marie Obenour at 2023-04-05 17:38:41

This is recommended by LLVM for languages with lots of guards that are rarely executed. Rust certainly does (mostly array bounds checks, but also Option::unwrap() and Result::unwrap()).

  1. Please only do this if compile time is kept under control somehow...

    Jonas Schievink at 2016-04-30 21:25:36

  2. These passes can be disabled by default if they take too much time.

    Demi Marie Obenour at 2016-05-03 21:20:39

  3. I'd like to work on this issue if nobody is currently working on it

    Michael Maitland at 2021-08-05 21:30:12

  4. @Yasgur99 Sure! Go for it. Please let us know if you need any help.

    Jubilee at 2021-10-05 04:35:13