Skip to content

Commit 9e7207e

Browse files
committed
Drop extra store-load-store chain splicing
1 parent 0615b7d commit 9e7207e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53446,13 +53446,11 @@ static SDValue narrowBitOpRMW(StoreSDNode *St, const SDLoc &DL,
5344653446
Align(), St->getMemOperand()->getFlags());
5344753447

5344853448
// If there are other uses of StoredVal, replace with a new load of the
53449-
// whole (updated) value and ensure that any chained dependencies on the
53450-
// original store are updated to come AFTER the new load.
53449+
// whole (updated) value.
5345153450
if (!StoredVal.hasOneUse()) {
5345253451
SDValue NewLoad =
5345353452
DAG.getLoad(VT, DL, NewStore, Ld->getBasePtr(), Ld->getMemOperand());
5345453453
DAG.ReplaceAllUsesWith(StoredVal, NewLoad);
53455-
DAG.ReplaceAllUsesWith(SDValue(St, 0), NewLoad.getValue(1));
5345653454
}
5345753455
return NewStore;
5345853456
}

0 commit comments

Comments
 (0)