From 96ba8cb9b2b1087abeaaf1ede246b56ee788028b Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Mon, 7 Oct 2013 19:06:57 +0000 Subject: [mips] Define method MipsSubtarget::enableLongBranchPass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192122 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsSubtarget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Target/Mips/MipsSubtarget.h') diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h index 140ddde045..1d9940408a 100644 --- a/lib/Target/Mips/MipsSubtarget.h +++ b/lib/Target/Mips/MipsSubtarget.h @@ -194,6 +194,10 @@ public: bool mipsSEUsesSoftFloat() const; + bool enableLongBranchPass() const { + return hasStandardEncoding() || allowMixed16_32(); + } + /// Features related to the presence of specific instructions. bool hasSEInReg() const { return HasSEInReg; } bool hasCondMov() const { return HasCondMov; } -- cgit v1.2.3