[llvm] r205112 - ARM64: Remove unused helper function, make others static.

Benjamin Kramer benny.kra at googlemail.com
Sat Mar 29 11:00:49 PDT 2014


Author: d0k
Date: Sat Mar 29 13:00:49 2014
New Revision: 205112

URL: http://llvm.org/viewvc/llvm-project?rev=205112&view=rev
Log:
ARM64: Remove unused helper function, make others static.

Modified:
    llvm/trunk/lib/Target/ARM64/ARM64ConditionalCompares.cpp
    llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
    llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp

Modified: llvm/trunk/lib/Target/ARM64/ARM64ConditionalCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ConditionalCompares.cpp?rev=205112&r1=205111&r2=205112&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ConditionalCompares.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ConditionalCompares.cpp Sat Mar 29 13:00:49 2014
@@ -266,7 +266,7 @@ bool SSACCmpConv::isDeadDef(unsigned Dst
 // Parse a condition code returned by AnalyzeBranch, and compute the CondCode
 // corresponding to TBB.
 // Return
-bool parseCond(ArrayRef<MachineOperand> Cond, ARM64CC::CondCode &CC) {
+static bool parseCond(ArrayRef<MachineOperand> Cond, ARM64CC::CondCode &CC) {
   // A normal br.cond simply has the condition code.
   if (Cond[0].getImm() != -1) {
     assert(Cond.size() == 1 && "Unknown Cond array format");

Modified: llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp?rev=205112&r1=205111&r2=205112&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp Sat Mar 29 13:00:49 2014
@@ -4939,8 +4939,8 @@ FailedModImm:
 // Specialized code to quickly find if PotentialBVec is a BuildVector that
 // consists of only the same constant int value, returned in reference arg
 // ConstVal
-bool isAllConstantBuildVector(const SDValue &PotentialBVec,
-                              uint64_t &ConstVal) {
+static bool isAllConstantBuildVector(const SDValue &PotentialBVec,
+                                     uint64_t &ConstVal) {
   BuildVectorSDNode *Bvec = dyn_cast<BuildVectorSDNode>(PotentialBVec);
   if (!Bvec)
     return false;
@@ -6613,45 +6613,6 @@ static SDValue tryCombineFixedPointConve
   return SDValue();
 }
 
-// Normalise extract_subvectors that extract the high V64 of a V128. If
-// the type of the extract_subvector is anything other than v1i64,
-// create a new exact with type v1i64. This is so that the
-// extract_subvector matches the extract_high PatFrag in tablegen.
-SDValue normalizeExtractHigh(SDNode *N, SelectionDAG &DAG) {
-  // Look through bitcasts.
-  while (N->getOpcode() == ISD::BITCAST)
-    N = N->getOperand(0).getNode();
-
-  if (N->getOpcode() != ISD::EXTRACT_SUBVECTOR)
-    return SDValue();
-
-  uint64_t idx = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
-
-  EVT SrcVT = N->getOperand(0).getValueType();
-  unsigned SrcElts = SrcVT.getVectorNumElements();
-  unsigned DstElts = N->getValueType(0).getVectorNumElements();
-
-  if ((SrcElts == 2 * DstElts) && (idx == DstElts)) {
-
-    // If this is already a v1i64 extract, just return it.
-    if (DstElts == 1)
-      return SDValue(N, 0);
-
-#ifndef NDEBUG
-    unsigned SrcBits = SrcVT.getVectorElementType().getSizeInBits();
-    assert(SrcElts * SrcBits == 128 && "Not an extract from a wide vector");
-#endif
-
-    SDValue Bitcast =
-        DAG.getNode(ISD::BITCAST, SDLoc(N), MVT::v2i64, N->getOperand(0));
-
-    return DAG.getNode(ISD::EXTRACT_SUBVECTOR, SDLoc(N), MVT::v1i64, Bitcast,
-                       DAG.getConstant(1, MVT::i64));
-  }
-
-  return SDValue();
-}
-
 // AArch64 high-vector "long" operations are formed by performing the non-high
 // version on an extract_subvector of each operand which gets the high half:
 //

Modified: llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp?rev=205112&r1=205111&r2=205112&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/MCTargetDesc/ARM64MCTargetDesc.cpp Sat Mar 29 13:00:49 2014
@@ -73,9 +73,9 @@ static MCAsmInfo *createARM64MCAsmInfo(c
   return MAI;
 }
 
-MCCodeGenInfo *createARM64MCCodeGenInfo(StringRef TT, Reloc::Model RM,
-                                        CodeModel::Model CM,
-                                        CodeGenOpt::Level OL) {
+static MCCodeGenInfo *createARM64MCCodeGenInfo(StringRef TT, Reloc::Model RM,
+                                               CodeModel::Model CM,
+                                               CodeGenOpt::Level OL) {
   Triple TheTriple(TT);
   assert((TheTriple.isOSBinFormatELF() || TheTriple.isOSBinFormatMachO()) &&
          "Only expect Darwin and ELF targets");





More information about the llvm-commits mailing list