[all-commits] [llvm/llvm-project] 98d7e5: [LegalizeTypes] Remove unnecessary if around switc...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Nov 5 11:03:28 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 98d7e583db9e15cff5ba1b002da0e66dc3ab89fe
      https://github.com/llvm/llvm-project/commit/98d7e583db9e15cff5ba1b002da0e66dc3ab89fe
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list