diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-23 19:33:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-23 19:33:11 +0000 |
commit | 652b7e488d78fe4d3697d2aaf7734422650fd7d0 (patch) | |
tree | 612c9f399bb6816d0fafc86b190f8254ec9cf480 /lib/Target | |
parent | da244a091dcde022ea4938793d81ee957903ed70 (diff) | |
download | external_llvm-652b7e488d78fe4d3697d2aaf7734422650fd7d0.zip external_llvm-652b7e488d78fe4d3697d2aaf7734422650fd7d0.tar.gz external_llvm-652b7e488d78fe4d3697d2aaf7734422650fd7d0.tar.bz2 |
no need to override IsLegalToFold, the base implementation
disables load folding at -O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index b6e86bd..b337e61 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -185,8 +185,6 @@ namespace { virtual bool IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const; - virtual bool IsLegalToFold(SDValue N, SDNode *U, SDNode *Root) const; - // Include the pieces autogenerated from the target description. #include "X86GenDAGISel.inc" @@ -382,14 +380,6 @@ X86DAGToDAGISel::IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const { return true; } - -bool X86DAGToDAGISel::IsLegalToFold(SDValue N, SDNode *U, SDNode *Root) const { - if (OptLevel == CodeGenOpt::None) return false; - - // Proceed to 'generic' cycle finder code - return SelectionDAGISel::IsLegalToFold(N, U, Root); -} - /// MoveBelowTokenFactor - Replace TokenFactor operand with load's chain operand /// and move load below the TokenFactor. Replace store's chain operand with /// load's chain result. |