summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2014-09-15 20:30:25 +0000
committerReed Kotler <rkotler@mips.com>2014-09-15 20:30:25 +0000
commit32be74b17828ae823ece24b967eae5a9b6a7aaed (patch)
tree26808fc1ff563f2dcf34c01fa2b1992bbeac6c46 /llvm/lib
parent15f7ed96ac71c7a53b8f1ea667914775a3af51b1 (diff)
downloadbcm5719-llvm-32be74b17828ae823ece24b967eae5a9b6a7aaed.tar.gz
bcm5719-llvm-32be74b17828ae823ece24b967eae5a9b6a7aaed.zip
Add mips32 r1 to the list of supported targets for Mips fast-isel
Summary: Expand list of supported targets for Mips to include mips32 r1. Previously it only include r2. More patches are coming where there is a difference but in the current patches as pushed upstream, r1 and r2 are equivalent. Test Plan: simplestorefp1.ll add new build bots at mips to test this flavor at both -O0 and -O2 Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D5306 llvm-svn: 217821
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsFastISel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp
index 9dde1d8e5e8..e5857a0100e 100644
--- a/llvm/lib/Target/Mips/MipsFastISel.cpp
+++ b/llvm/lib/Target/Mips/MipsFastISel.cpp
@@ -61,7 +61,8 @@ public:
MFI = funcInfo.MF->getInfo<MipsFunctionInfo>();
Context = &funcInfo.Fn->getContext();
TargetSupported = ((Subtarget->getRelocationModel() == Reloc::PIC_) &&
- (Subtarget->hasMips32r2() && (Subtarget->isABI_O32())));
+ ((Subtarget->hasMips32r2() || Subtarget->hasMips32()) &&
+ (Subtarget->isABI_O32())));
}
bool fastSelectInstruction(const Instruction *I) override;
OpenPOWER on IntegriCloud