1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

no need to override IsLegalToFold, the base implementation

disables load folding at -O0.

llvm-svn: 96973
This commit is contained in:
Chris Lattner 2010-02-23 19:33:11 +00:00
parent f6e9f39042
commit 74715dd299

View File

@ -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.