This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix load-conversion pattern recognition in strictfp cases
ClosedPublic

Authored by qiucf on Nov 15 2022, 1:48 AM.

Details

Reviewers
shchenz
lkail
Group Reviewers
Restricted Project
Commits
rG5d19fea81fc2: [PowerPC] Fix strict load-conversion recognition
Summary

Direct-move instructions are usually more efficient than load then store for conversion. But direct moves are not needed when the source register was just loaded from some address.

The pattern has already been recognized, but the source value of strict nodes are not the first (that's the chain), but the second. This patch fixes it and makes the peephole available to strict conversion operations.

Diff Detail

Event Timeline

qiucf created this revision.Nov 15 2022, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 1:48 AM
qiucf requested review of this revision.Nov 15 2022, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 1:48 AM
shchenz accepted this revision as: shchenz.Nov 15 2022, 2:13 AM

LGTM. Thanks for fixing.

This revision is now accepted and ready to land.Nov 15 2022, 2:13 AM
This revision was landed with ongoing or failed builds.Nov 15 2022, 6:02 PM
This revision was automatically updated to reflect the committed changes.