Skip to content

Conversation

@cme
Copy link

@cme cme commented Jan 31, 2024

The move optimisation and load/store optimisation passes were not initialised correctly and so didn't show up in IR dumps with -print-before-all / -print-after-all etc.

initializeMipsPreLegalizerCombinerPass(*PR);
initializeNMOptimizeJumpTablesPass(*PR);
initializeRedundantCopyEliminationPass(*PR);
initializeNMLoadStoreOptPass(*PR);

Choose a reason for hiding this comment

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

How did we previously register the pass with pass manager? Do you need to remove that?

Copy link
Author

Choose a reason for hiding this comment

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

It was not explicitly registered, which was the problem. It was just created and added in the MipsPassConfig::addPreSched2() -- so it was run, but otherwise the pass manager didn't know about it.

Copy link

@draganmladjenovic draganmladjenovic left a comment

Choose a reason for hiding this comment

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

LGTM

@djtodoro
Copy link
Collaborator

djtodoro commented Jun 4, 2024

@cme Can we merge this?

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.

4 participants