[IRTranslator][NFC] Refactor if/else chain into early returns
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Tue, 23 May 2023 14:27:34 +0000 (10:27 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Thu, 25 May 2023 10:42:44 +0000 (06:42 -0400)
commitb5983a38cbf4eb405fe9583ab89e15db1dcfa173
treead14dc6d461433a157aeaaea6c296ab03d274a0a
parenta1c4f427f6da37d6e52d8e991687302c9a331286
[IRTranslator][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.

Differential Revision: https://reviews.llvm.org/D151328
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp