Skip to content

Commit ea7157f

Browse files
committed
[GlobalISel] Propagate mem operands for indexed load/stores.
There isn't a test for this yet since the combines aren't used atm, but it will be tested as part of a future commit. I'm just making this a separate change tidyness reasons.
1 parent 671e2ba commit ea7157f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,7 @@ void CombinerHelper::applyCombineIndexedLoadStore(
10781078
MIB.addUse(MatchInfo.Base);
10791079
MIB.addUse(MatchInfo.Offset);
10801080
MIB.addImm(MatchInfo.IsPre);
1081+
MIB->cloneMemRefs(*MI.getMF(), MI);
10811082
MI.eraseFromParent();
10821083
AddrDef.eraseFromParent();
10831084

0 commit comments

Comments
 (0)