diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2019-11-21 12:48:23 +0300 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2019-11-21 13:50:14 +0300 |
| commit | cc80695f6f17f922ce91f18804b44af89ed21f27 (patch) | |
| tree | e93b9521ec67d83ff9720894f7f20a65b622c629 /llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | |
| parent | 3d07c3cf7c9284f5202cf4b3a4db0478e8de29ea (diff) | |
| download | bcm5719-llvm-cc80695f6f17f922ce91f18804b44af89ed21f27.tar.gz bcm5719-llvm-cc80695f6f17f922ce91f18804b44af89ed21f27.zip | |
[mips] Remove unused `IsPCRelativeLoad` MIPS instructions attribute. NFC
This attribute is always set to zero.
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 69c978d0b63..7f528121795 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -2129,8 +2129,7 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc, ExpandedJalSym = true; } - bool IsPCRelativeLoad = (MCID.TSFlags & MipsII::IsPCRelativeLoad) != 0; - if ((MCID.mayLoad() || MCID.mayStore()) && !IsPCRelativeLoad) { + if (MCID.mayLoad() || MCID.mayStore()) { // Check the offset of memory operand, if it is a symbol // reference or immediate we may have to expand instructions. if (needsExpandMemInst(Inst)) { |

