diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-06 20:34:06 +0000 | 
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-06 20:34:06 +0000 | 
| commit | fc5d305597ea6336d75bd7f3b741e8d57d6a5105 (patch) | |
| tree | 74cae16e5f701b7d0bc679d547c4fe85f91be3a7 /lib/Target/Blackfin | |
| parent | 8265e6ab4fb5ff178266d960c5d894f5828bb8ce (diff) | |
| download | external_llvm-fc5d305597ea6336d75bd7f3b741e8d57d6a5105.zip external_llvm-fc5d305597ea6336d75bd7f3b741e8d57d6a5105.tar.gz external_llvm-fc5d305597ea6336d75bd7f3b741e8d57d6a5105.tar.bz2  | |
Make the logic for determining function alignment more explicit.  No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Blackfin')
| -rw-r--r-- | lib/Target/Blackfin/BlackfinISelLowering.cpp | 7 | ||||
| -rw-r--r-- | lib/Target/Blackfin/BlackfinISelLowering.h | 1 | 
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/Blackfin/BlackfinISelLowering.cpp b/lib/Target/Blackfin/BlackfinISelLowering.cpp index 1e1f8c9..b097931 100644 --- a/lib/Target/Blackfin/BlackfinISelLowering.cpp +++ b/lib/Target/Blackfin/BlackfinISelLowering.cpp @@ -121,6 +121,8 @@ BlackfinTargetLowering::BlackfinTargetLowering(TargetMachine &TM)    setOperationAction(ISD::VAEND, MVT::Other, Expand);    setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);    setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand); + +  setMinFunctionAlignment(2);  }  const char *BlackfinTargetLowering::getTargetNodeName(unsigned Opcode) const { @@ -497,11 +499,6 @@ BlackfinTargetLowering::ReplaceNodeResults(SDNode *N,    }  } -/// getFunctionAlignment - Return the Log2 alignment of this function. -unsigned BlackfinTargetLowering::getFunctionAlignment(const Function *F) const { -  return 2; -} -  //===----------------------------------------------------------------------===//  //                         Blackfin Inline Assembly Support  //===----------------------------------------------------------------------===// diff --git a/lib/Target/Blackfin/BlackfinISelLowering.h b/lib/Target/Blackfin/BlackfinISelLowering.h index 102c830..9a54557 100644 --- a/lib/Target/Blackfin/BlackfinISelLowering.h +++ b/lib/Target/Blackfin/BlackfinISelLowering.h @@ -53,7 +53,6 @@ namespace llvm {                                        EVT VT) const;      virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;      const char *getTargetNodeName(unsigned Opcode) const; -    unsigned getFunctionAlignment(const Function *F) const;    private:      SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;  | 
