Skip to content

Commit 7a86645

Browse files
author
Simon Moll
committed
[VE] VP intrinsics are legal
1 parent 43bc584 commit 7a86645

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/lib/Target/VE/VETargetTransformInfo.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ class VETTIImpl : public BasicTTIImplBase<VETTIImpl> {
6464
llvm_unreachable("Unsupported register kind");
6565
}
6666

67+
/// \returns How the target needs this vector-predicated operation to be
68+
/// transformed.
69+
TargetTransformInfo::VPLegalization
70+
getVPLegalizationStrategy(const VPIntrinsic &PI) const {
71+
using VPLegalization = TargetTransformInfo::VPLegalization;
72+
return VPLegalization(VPLegalization::Legal, VPLegalization::Legal);
73+
}
74+
6775
unsigned getMinVectorRegisterBitWidth() const {
6876
// TODO report vregs once vector isel is stable.
6977
return 0;

0 commit comments

Comments
 (0)