Skip to content

Commit e8705b3

Browse files
F-Stuckmannandcarminati
authored andcommitted
[AIEX][NFC] clarify postInc optimize comment
1 parent 90a0f3d commit e8705b3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Target/AIE/AIEClusterBaseAddress.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ bool optimisePostIncrements(ArrayRef<MachineInstr *> PtrAdds,
8787
bool Changed = false;
8888

8989
// Look for the following sequence:
90-
// %0 = G_PTR_ADD %100, %101
91-
// %1 = G_PTR_ADD %100, 32
92-
// And swap the offsets if it is safe to get:
93-
// %0 = G_PTR_ADD %100, 32
90+
// %0 = G_PTR_ADD %100, 64
9491
// %1 = G_PTR_ADD %100, %101
92+
// %2 = G_PTR_ADD %1, 32
93+
// And swap the offsets if it is safe to get:
94+
// %0 = G_PTR_ADD %100, 64
95+
// %1 = G_PTR_ADD %100, 32
96+
// %2 = G_PTR_ADD %1, %101
9597
for (MachineInstr *PtrAdd : PtrAdds) {
9698
assert(PtrAdd->getOpcode() == TargetOpcode::G_PTR_ADD);
9799
Register OutputPtr = PtrAdd->getOperand(0).getReg();

0 commit comments

Comments
 (0)