[mips][FastISel] Instantiate the MipsFastISel class only for targets that support...
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 18 Oct 2016 13:05:42 +0000 (13:05 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 18 Oct 2016 13:05:42 +0000 (13:05 +0000)
commit3955b75ba9c2f5888d2e3113ebf9d72d97f047eb
tree301800fc1bbdbbfd4d8ae65eae09ad59d691d4b3
parent9f578ceed72734025803c54c30aae4c3669fbb9e
[mips][FastISel] Instantiate the MipsFastISel class only for targets that support FastISel.

Summary:
Instead of instantiating the MipsFastISel class and checking if the
target is supported in the overriden methods, we should perform that
check before creating the class. This allows us to enable FastISel *only*
for targets that truly support it, ie. MIPS32 to MIPS32R5.

Reviewers: sdardis

Subscribers: ehostunreach, llvm-commits

Differential Revision: https://reviews.llvm.org/D24824

llvm-svn: 284475
llvm/lib/Target/Mips/MipsFastISel.cpp
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/test/CodeGen/Mips/Fast-ISel/check-disabled-mcpus.ll
llvm/test/CodeGen/Mips/Fast-ISel/double-arg.ll
llvm/test/CodeGen/Mips/tailcall/tail-call-arguments-clobber.ll
llvm/test/DebugInfo/Mips/dsr-non-fixed-objects.ll