[NFC] Factor out collection of unswitch candidate to a separate function
authorMax Kazantsev <mkazantsev@azul.com>
Tue, 11 Oct 2022 11:01:58 +0000 (18:01 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Tue, 11 Oct 2022 12:35:16 +0000 (19:35 +0700)
commit91aa9097ae52c39c0b077faf03ab58af0ee15d2d
treec74e072f5ee684d2806cf93c319d7fad432bf460
parentf18979912da1455ab8822f4719cf090bf77724e3
[NFC] Factor out collection of unswitch candidate to a separate function

Just to make the code more structured and easier to understand.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp