[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)
commit2f12b2ede5bcd53ea6bb60ce5d0e0917e5d6dc27
treed514f13f98535da996d8afa51230c7c94fb4f0e6
parent2ffdd4d0e5bca74870fe5be55aed0c60f7e95924
[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

llvm-svn: 243986
llvm/lib/Target/Mips/MipsFastISel.cpp