[LegalizeTypes][VP][NFC] Use an if and two returns instead of ?: operator
authorLian Wang <Lian.Wang@streamcomputing.com>
Wed, 18 May 2022 07:44:26 +0000 (07:44 +0000)
committerLian Wang <Lian.Wang@streamcomputing.com>
Thu, 19 May 2022 07:18:24 +0000 (07:18 +0000)
commit993070d11f1612e1fc6b2ac120064d7ecf4a00c4
treeaf9e42c64ebb7eac4720b429bab82db1972935b1
parent4f35ca59d0fe1f0955d9e085e2c8ebd1bf27e421
[LegalizeTypes][VP][NFC] Use an if and two returns instead of ?: operator

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D125858
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp