Index: src/IceTargetLoweringMIPS32.cpp |
diff --git a/src/IceTargetLoweringMIPS32.cpp b/src/IceTargetLoweringMIPS32.cpp |
index 3cbf03efb3ed3dc702ab3d2719c2db35c83e20a3..d8cd65c2973ac502ca2cd18f8c99e000754c1f23 100644 |
--- a/src/IceTargetLoweringMIPS32.cpp |
+++ b/src/IceTargetLoweringMIPS32.cpp |
@@ -116,6 +116,9 @@ void TargetMIPS32::staticInit(GlobalContext *Ctx) { |
TypeToRegisterSet[IceType_v4i32] = VectorRegisters; |
TypeToRegisterSet[IceType_v4f32] = VectorRegisters; |
+ for (size_t i = 0; i < llvm::array_lengthof(TypeToRegisterSet); ++i) |
+ TypeToRegisterSetUnfiltered[i] = TypeToRegisterSet[i]; |
+ |
filterTypeToRegisterSet(Ctx, RegMIPS32::Reg_NUM, TypeToRegisterSet, |
llvm::array_lengthof(TypeToRegisterSet), |
RegMIPS32::getRegName, getRegClassName); |
@@ -1126,6 +1129,7 @@ void TargetHeaderMIPS32::lower() { |
} |
llvm::SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; |
+llvm::SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; |
llvm::SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; |
} // end of namespace MIPS32 |