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 | 8d7b4393d2c8dab59c193a0511e5de63560b2f32 (patch) | |
tree | 818d1e2a5e7f1ab373103603caa96a8571f2446f | |
parent | 8585850e9421d6b5d03f482671a9456decf860f1 (diff) | |
download | bcm5719-llvm-8d7b4393d2c8dab59c193a0511e5de63560b2f32.tar.gz bcm5719-llvm-8d7b4393d2c8dab59c193a0511e5de63560b2f32.zip |
no need to override IsLegalToFold, the base implementation
disables load folding at -O0.
llvm-svn: 96973
-rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index b6e86bdce76..b337e61af12 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/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. |