[X86] Improve the message for some asserts. Remove an if that is guaranteed true...
authorCraig Topper <craig.topper@intel.com>
Mon, 9 Jul 2018 01:52:56 +0000 (01:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 9 Jul 2018 01:52:56 +0000 (01:52 +0000)
commitb8145ec667e47b3a6964cfbbac2bb4fe9d7f7361
tree8e51337ea3040b2885c43f52873adb43543e5f35
parentc98c675f03929308cc82be7600d0929416ee1a68
[X86] Improve the message for some asserts. Remove an if that is guaranteed true by said asserts.

This replaces some asserts in lowerV2F64VectorShuffle with the similar asserts from lowerVIF64VectorShuffle which are more readable. The original asserts mentioned a blend, but there's no guarantee that it is a blend.

Also remove an if that the asserts prove is always true. Mask[0] is always less than 2 and Mask[1] is always at least 2. Therefore (Mask[0] >= 2) + (Mask[1] >= 2) == 1 must wlays be true.

llvm-svn: 336517
llvm/lib/Target/X86/X86ISelLowering.cpp