[NewPM][Unswitch] Add option to disable -O3 non-trivial unswitching
authorArthur Eubanks <aeubanks@google.com>
Mon, 1 Feb 2021 17:47:22 +0000 (09:47 -0800)
committerArthur Eubanks <aeubanks@google.com>
Mon, 1 Feb 2021 19:11:59 +0000 (11:11 -0800)
commit7739f9ff974a2b301f5b036de55820b19a0df19a
treef4b87aedec716427a8038895aebaafc58fff534f
parentc691fe14da93a7c9eff466231515d6d4d16124fa
[NewPM][Unswitch] Add option to disable -O3 non-trivial unswitching

Some benchmarks regress with non-trivial unswitching, so add an option
to opt-out of performing non-trivial unswitching while investigating.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D95796
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Transforms/SimpleLoopUnswitch/pipeline.ll