HomePhabricator

[mips][FastISel] Instantiate the MipsFastISel class only for targets that…

Authored by Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> on Oct 18 2016, 6:05 AM.

Description

[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

Event Timeline

Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> committed rG3955b75ba9c2: [mips][FastISel] Instantiate the MipsFastISel class only for targets that… (authored by Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>).Oct 18 2016, 6:05 AM