[LegalizeTypes] Remove unnecessary if around switch in ScalarizeVectorOperand and...
authorCraig Topper <craig.topper@sifive.com>
Thu, 5 Nov 2020 18:58:42 +0000 (10:58 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 5 Nov 2020 19:00:51 +0000 (11:00 -0800)
commit98d7e583db9e15cff5ba1b002da0e66dc3ab89fe
tree7dae375d5fa8082377805a716ee7763b4a8429b6
parent82f86ae01a54ff8e3a5aaefd24745ef2b7b917ba
[LegalizeTypes] Remove unnecessary if around switch in ScalarizeVectorOperand and SplitVectorOperand. NFC

The if was checking !Res.getNode() but that's always true since
Res was initialized to SDValue() and not touched before the if.

This appears to be a leftover from a previous implementation of
Custom legalization where Res was updated instead of returning
immediately.
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp