mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 15:22:41 +00:00
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
This commit is contained in:
parent
da244a091d
commit
652b7e488d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user