[FastISel][NFC] Refactor if/else chain into early returns
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Wed, 24 May 2023 11:01:11 +0000 (07:01 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Fri, 26 May 2023 11:08:54 +0000 (07:08 -0400)
commit96ec1bee16fb50afa84a963a18df1a21c0b7355e
treebd774f7ac247d11a4985cb83ca22e2fa21a6f98d
parentaba1bea6731036ba05abfd5f595941e9306ac058
[FastISel][NFC] Refactor if/else chain into early returns

This will make it easier to add more cases in a subsequent commit and also
better conforms to the coding guidelines.

Depends on D151330

Differential Revision: https://reviews.llvm.org/D151331
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp