[mips][FastISel] Disable code generation for unsupported targets through FastISel.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 4 Aug 2015 14:35:50 +0000 (14:35 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 4 Aug 2015 14:35:50 +0000 (14:35 +0000)
commitec5601a7f664c208face19af3ebc8e75f20a5ddb
tree417aab2921d91598d4571a3bab1ce76c17fa9470
parentedcaae782eddc1b820f5e58d5405c541665c87be
[mips][FastISel] Disable code generation for unsupported targets through FastISel.

Summary:
Previously, we would check whether the target is supported or not, only in
fastSelectInstruction(). This means that 64-bit targets could use FastISel too.
We fix this by checking every overridden method of the FastISel class and
by falling back to SelectionDAG if the target isn't supported. This change
should have been committed along with r243638, but somehow I missed it.

Reviewers: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11755

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp