Teach DAGCombine to fold constant offsets into GlobalAddress nodes,
[oota-llvm.git] / lib / Target / Mips / MipsISelLowering.cpp
index 3224d73d5f6041aea767fc114def38d8ade16d70..8fdc4b799b8d7938ee995e52712ca85c117e0b65 100644 (file)
@@ -1094,3 +1094,9 @@ getRegClassForInlineAsmConstraint(const std::string &Constraint,
   }
   return std::vector<unsigned>();
 }
+
+bool
+MipsTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
+  // The Mips target isn't yet aware of offsets.
+  return false;
+}