]> granicus.if.org Git - llvm/commit
[SLPVectorizer] Pass the right type argument to getCmpSelInstrCost()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 12 Apr 2017 13:29:25 +0000 (13:29 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 12 Apr 2017 13:29:25 +0000 (13:29 +0000)
commit0b09474fe1a4c1519e7a299e79c578cbe5b60a91
tree6125a17add7ed8c11fb745f57655bd77b9e5c6a0
parent4e5abdf67c5e0b97b97f594bd0c81fc099f013e8
[SLPVectorizer]  Pass the right type argument to getCmpSelInstrCost()

In getEntryCost(), make the scalar type for a compare instruction that of the
operands, not i1. This is needed in order to call getCmpSelInstrCost() for a
compare in a sensible way, the same way as the LoopVectorizer does.

New test: test/Transforms/SLPVectorizer/SystemZ/SLP-cmp-cost-query.ll

Review: Matthew Simpson
https://reviews.llvm.org/D31601

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300061 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/SystemZ/SLP-cmp-cost-query.ll [new file with mode: 0644]