OSDN Git Service

[x86] simplify logic in lowerShuffleWithUndefHalf(); NFCI
authorSanjay Patel <spatel@rotateright.com>
Fri, 25 Jan 2019 17:00:41 +0000 (17:00 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 25 Jan 2019 17:00:41 +0000 (17:00 +0000)
commit1c43876583d55395a588bdcb71ba283001230f3d
tree1168466d350ab2fb09502c939ca2946af24d0e93
parent69cb1ba26b9410be161a79188ccba935d1b1f5eb
[x86] simplify logic in lowerShuffleWithUndefHalf(); NFCI

This seems unnecessarily complicated because we gave names to
opposite polarity bools and have code comments that don't really
line up with the logic.

Step 1: remove UndefUpper and assert that it is the opposite of
UndefLower after the initial early exit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp