summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorAna Pazos <apazos@codeaurora.org>2014-01-24 22:36:53 +0000
committerAna Pazos <apazos@codeaurora.org>2014-01-24 22:36:53 +0000
commit08f6677a7fa8b89412c0e27e5445813174361504 (patch)
tree191d2fe137ef01a633cf26e587d686ac60c2a97c /lib/Target
parentdbba2eb82fcecbc8a202c3d1d0704f1831154992 (diff)
downloadllvm-08f6677a7fa8b89412c0e27e5445813174361504.tar.gz
llvm-08f6677a7fa8b89412c0e27e5445813174361504.tar.bz2
llvm-08f6677a7fa8b89412c0e27e5445813174361504.tar.xz
[AArch64] Removed unused i8 type from FPR8 register class.
The i8 type is not registered with any register class. This causes a segmentation fault in MachineLICM::getRegisterClassIDAndCost. The code selects the first type associated with register class FPR8, which happens to be i8. It uses this type (i8) to get the representative class pointer, which is 0. It then uses this pointer to access a field, resulting in segmentation fault. Since i8 type is not being used for printing any neon instruction we can safely remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/AArch64/AArch64RegisterInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64RegisterInfo.td b/lib/Target/AArch64/AArch64RegisterInfo.td
index cfc0c953bd..9de7abdf5f 100644
--- a/lib/Target/AArch64/AArch64RegisterInfo.td
+++ b/lib/Target/AArch64/AArch64RegisterInfo.td
@@ -146,7 +146,7 @@ foreach Index = 0-31 in {
}
-def FPR8 : RegisterClass<"AArch64", [i8, v1i8], 8,
+def FPR8 : RegisterClass<"AArch64", [v1i8], 8,
(sequence "B%u", 0, 31)> {
}