[mips] Compute stack alignment on the fly.
llvm-svn: 193673
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h
index 378fc00..7c17553 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.h
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h
@@ -116,8 +116,6 @@
// HasMSA -- supports MSA ASE.
bool HasMSA;
- unsigned StackAlignment;
-
InstrItineraryData InstrItins;
// The instance to the register info section object
@@ -219,7 +217,7 @@
//
static bool useConstantIslands();
- unsigned stackAlignment() const { return StackAlignment; }
+ unsigned stackAlignment() const { return isFP64bit() ? 16 : 8; }
// Grab MipsRegInfo object
const MipsReginfo &getMReginfo() const { return MRI; }