[llvm] r373503 - [ARM] Make helpers static. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 11:20:24 PDT 2019


Author: d0k
Date: Wed Oct  2 11:20:24 2019
New Revision: 373503

URL: http://llvm.org/viewvc/llvm-project?rev=373503&view=rev
Log:
[ARM] Make helpers static. NFC.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=373503&r1=373502&r2=373503&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed Oct  2 11:20:24 2019
@@ -13122,7 +13122,8 @@ static SDValue PerformLOADCombine(SDNode
 // Optimize trunc store (of multiple scalars) to shuffle and store.  First,
 // pack all of the elements in one place.  Next, store to memory in fewer
 // chunks.
-SDValue PerformTruncatingStoreCombine(StoreSDNode *St, SelectionDAG &DAG) {
+static SDValue PerformTruncatingStoreCombine(StoreSDNode *St,
+                                             SelectionDAG &DAG) {
   SDValue StVal = St->getValue();
   EVT VT = StVal.getValueType();
   if (!St->isTruncatingStore() || !VT.isVector())
@@ -13206,7 +13207,8 @@ SDValue PerformTruncatingStoreCombine(St
 // Try taking a single vector store from an truncate (which would otherwise turn
 // into an expensive buildvector) and splitting it into a series of narrowing
 // stores.
-SDValue PerformSplittingToNarrowingStores(StoreSDNode *St, SelectionDAG &DAG) {
+static SDValue PerformSplittingToNarrowingStores(StoreSDNode *St,
+                                                 SelectionDAG &DAG) {
   if (!St->isSimple() || St->isTruncatingStore() || !St->isUnindexed())
     return SDValue();
   SDValue Trunc = St->getValue();
@@ -13696,7 +13698,7 @@ static SDValue PerformShiftCombine(SDNod
 // Look for a sign/zero extend of a larger than legal load. This can be split
 // into two extending loads, which are simpler to deal with than an arbitrary
 // sign extend.
-SDValue PerformSplittingToWideningLoad(SDNode *N, SelectionDAG &DAG) {
+static SDValue PerformSplittingToWideningLoad(SDNode *N, SelectionDAG &DAG) {
   SDValue N0 = N->getOperand(0);
   if (N0.getOpcode() != ISD::LOAD)
     return SDValue();




More information about the llvm-commits mailing list