forked from OSchip/llvm-project
parent
0dfb84ce9b
commit
13148564d4
|
@ -2227,13 +2227,13 @@ static bool isFusableLoadOpStorePattern(StoreSDNode *StoreNode,
|
|||
SDValue StoredVal, SelectionDAG *CurDAG,
|
||||
LoadSDNode *&LoadNode,
|
||||
SDValue &InputChain) {
|
||||
// is the stored value result 0 of the load?
|
||||
// Is the stored value result 0 of the operation?
|
||||
if (StoredVal.getResNo() != 0) return false;
|
||||
|
||||
// are there other uses of the loaded value than the inc or dec?
|
||||
// Are there other uses of the operation other than the store?
|
||||
if (!StoredVal.getNode()->hasNUsesOfValue(1, 0)) return false;
|
||||
|
||||
// is the store non-extending and non-indexed?
|
||||
// Is the store non-extending and non-indexed?
|
||||
if (!ISD::isNormalStore(StoreNode) || StoreNode->isNonTemporal())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue