OSDN Git Service

[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)
commit73888073048ba7455f210506da2b10e275cb28d8
treee4088545d8537df8f15ffb62889a278e36bd9396
parent2ee4a67a6739995ad0dcb78963a44bec961bb3ad
[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.

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