OSDN Git Service

[LegalizeVectorTypes] When unrolling in WidenVecRes_Convert, make sure we use the...
authorCraig Topper <craig.topper@intel.com>
Fri, 12 Oct 2018 19:37:47 +0000 (19:37 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 12 Oct 2018 19:37:47 +0000 (19:37 +0000)
commit6147a037f6cd132b4659c2ae0553a728f376c33c
tree3421674c45e3519defb06657c6ed6a6df43bd7f0
parentc6422e18ae6edcce196d7667d6970cd175a8d560
[LegalizeVectorTypes] When unrolling in WidenVecRes_Convert, make sure we use the original vector element count. Not min of the widened result type and the possibly widened input type.

If the input type is widened as well, but we still were forced to unroll, we shouldn't be considering the widened input element count. We should only create as many scalar operations as the original type called for.

This will be important for an upcoming patch.

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