forked from OSchip/llvm-project
[VE] Correct addRegisterClass calls
Correct addRegisterClass calls for vector mask registers. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D93212
This commit is contained in:
parent
6bbbe4a574
commit
c9213e1b29
|
@ -73,8 +73,6 @@ bool VETargetLowering::CanLowerReturn(
|
|||
static const MVT AllVectorVTs[] = {MVT::v256i32, MVT::v512i32, MVT::v256i64,
|
||||
MVT::v256f32, MVT::v512f32, MVT::v256f64};
|
||||
|
||||
static const MVT AllMaskVTs[] = {MVT::v256i1, MVT::v512i1};
|
||||
|
||||
void VETargetLowering::initRegisterClasses() {
|
||||
// Set up the register classes.
|
||||
addRegisterClass(MVT::i32, &VE::I32RegClass);
|
||||
|
@ -86,8 +84,8 @@ void VETargetLowering::initRegisterClasses() {
|
|||
if (Subtarget->enableVPU()) {
|
||||
for (MVT VecVT : AllVectorVTs)
|
||||
addRegisterClass(VecVT, &VE::V64RegClass);
|
||||
for (MVT MaskVT : AllMaskVTs)
|
||||
addRegisterClass(MaskVT, &VE::VMRegClass);
|
||||
addRegisterClass(MVT::v256i1, &VE::VMRegClass);
|
||||
addRegisterClass(MVT::v512i1, &VE::VM512RegClass);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue