[AArch64] Removed unused i8 type from FPR8 register class.
authorAna Pazos <apazos@codeaurora.org>
Fri, 24 Jan 2014 22:36:53 +0000 (22:36 +0000)
committerAna Pazos <apazos@codeaurora.org>
Fri, 24 Jan 2014 22:36:53 +0000 (22:36 +0000)
commit08f6677a7fa8b89412c0e27e5445813174361504
tree191d2fe137ef01a633cf26e587d686ac60c2a97c
parentdbba2eb82fcecbc8a202c3d1d0704f1831154992
[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
lib/Target/AArch64/AArch64RegisterInfo.td
test/CodeGen/AArch64/concatvector-v8i8-bug.ll [new file with mode: 0644]