[PATCH] D33593: [mips] Don't use FastISel when -mxgot is present
Petar Jovanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 06:00:26 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL304906: [mips] do not use FastISel when -mxgot is present (authored by petarj).
Changed prior to commit:
https://reviews.llvm.org/D33593?vs=100853&id=101719#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33593
Files:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
llvm/trunk/test/CodeGen/Mips/biggot.ll
Index: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
@@ -470,8 +470,9 @@
!Subtarget.hasMips32r6() && !Subtarget.inMips16Mode() &&
!Subtarget.inMicroMipsMode();
- // Disable if we don't generate PIC or the ABI isn't O32.
- if (!TM.isPositionIndependent() || !TM.getABI().IsO32())
+ // Disable if either of the following is true:
+ // We do not generate PIC, the ABI is not O32, LargeGOT is being used.
+ if (!TM.isPositionIndependent() || !TM.getABI().IsO32() || LargeGOT)
UseFastISel = false;
return UseFastISel ? Mips::createFastISel(funcInfo, libInfo) : nullptr;
Index: llvm/trunk/test/CodeGen/Mips/biggot.ll
===================================================================
--- llvm/trunk/test/CodeGen/Mips/biggot.ll
+++ llvm/trunk/test/CodeGen/Mips/biggot.ll
@@ -1,6 +1,9 @@
; RUN: llc -march=mipsel -mxgot -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
; RUN: llc -march=mips64el -mcpu=mips64r2 -mxgot -relocation-model=pic < %s | \
; RUN: FileCheck %s -check-prefix=N64
+; RUN: llc -march=mipsel -mxgot -relocation-model=pic -fast-isel < %s | FileCheck %s -check-prefix=O32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mxgot -relocation-model=pic -fast-isel < %s | \
+; RUN: FileCheck %s -check-prefix=N64
@v0 = external global i32
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33593.101719.patch
Type: text/x-patch
Size: 1495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170607/10552d8e/attachment.bin>
More information about the llvm-commits
mailing list