[NFC] Factor out computation of best unswitch cost candidate
authorMax Kazantsev <mkazantsev@azul.com>
Wed, 12 Oct 2022 05:21:29 +0000 (12:21 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Wed, 12 Oct 2022 05:36:46 +0000 (12:36 +0700)
commit421728b40c54aa3c3bcdf73dd44591503ecdaa23
treef5c7ff8433b72a8de7c583e92c05f2c8e1532680
parent56f94ede2af9a327e59fe84dbf8cbbb7bb1dfa79
[NFC] Factor out computation of best unswitch cost candidate

Split out a major peice of this method to make code more readable.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp