OSDN Git Service

[PowerPC] Implement the isSelectSupported() target hook
authorKang Zhang <shkzhang@cn.ibm.com>
Thu, 20 Dec 2018 06:19:59 +0000 (06:19 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Thu, 20 Dec 2018 06:19:59 +0000 (06:19 +0000)
commit26f63006cb920e48fbcea6fc9d37a59466879af6
treefb23a04b220c59da4c3e0bac4fd7251cccb0ff46
parentf41808d09e5ce372837846c0a63712db3746533b
[PowerPC] Implement the isSelectSupported() target hook

Summary:
PowerPC has scalar selects (isel) and vector mask selects (xxsel). But PowerPC
does not have vector CR selects, PowerPC does not support scalar condition
selects on vectors.
In addition to implementing this hook, isSelectSupported() should return false
when the SelectSupportKind is ScalarCondVectorVal, so that predictable selects
are converted into branch sequences.

Reviewed By: steven.zhang,  hfinkel

Differential Revision: https://reviews.llvm.org/D55754

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/select-i1-vs-i1.ll