Skip to content

Conversation

@vporpo
Copy link
Contributor

@vporpo vporpo commented Jul 18, 2024

This implements tracking of moving instrs with moveBefore().

@vporpo
Copy link
Contributor Author

vporpo commented Jul 18, 2024

Ah there is also Instruction::moveAfter() that can be used to move instructions. I will add a test for it too.

EXPECT_EQ(&*It++, Add0);
EXPECT_EQ(&*It++, Ret);
EXPECT_EQ(It, BB->end());
// Check revert().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this comment is inconsistently applied

Track instruction movement. This supports both moveBefore() and moveAfter().
@vporpo vporpo merged commit cbbd153 into llvm:main Jul 19, 2024
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
This implements tracking of moving instrs with `moveBefore()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants