]> granicus.if.org Git - llvm/commit
[LegalizeTypes] Don't use PromoteTargetBoolean in WidenVecOp_SETCC.
authorCraig Topper <craig.topper@intel.com>
Wed, 16 Oct 2019 03:29:24 +0000 (03:29 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 16 Oct 2019 03:29:24 +0000 (03:29 +0000)
commit0eba519ccf10df43efabec254e26daf96b3d0541
tree0fc3d9a2f7cd45aedbc145f64323755b39e1b903
parent5ddd81415da4049b3018d619fc167f10fc2ce9c4
[LegalizeTypes] Don't use PromoteTargetBoolean in WidenVecOp_SETCC.

Similar to r374970, but I don't have a test for this.

PromoteTargetBoolean is intended to be use for legalizing an
operand that needs to be promoted. It picks its type based on
the return from getSetccResultType and is intended to be used
when we have freedom to pick the new type. But the return type
we need for WidenVecOp_SETCC is completely determined by the
type of the input node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp