This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Add an ISEL pattern for i32 MULLI.
ClosedPublic

Authored by Esme on Jul 13 2022, 5:29 PM.

Details

Reviewers
shchenz
Group Reviewers
Restricted Project
Commits
rG28b1ba1c0742: [PowerPC] Add an ISEL pattern for i32 MULLI.
Summary

We add the following ISEL pattern for i64 imm in D87384, this patch is for i32.

mul with (2^N * int16_imm) -> MULLI + RLWINM

Diff Detail

Event Timeline

Esme created this revision.Jul 13 2022, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 5:29 PM
Esme requested review of this revision.Jul 13 2022, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 5:29 PM
shchenz accepted this revision as: shchenz.Jul 17 2022, 8:57 PM

LGTM.

llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
5491

Like this refactor.

This revision is now accepted and ready to land.Jul 17 2022, 8:57 PM
This revision was landed with ongoing or failed builds.Jul 18 2022, 1:41 AM
This revision was automatically updated to reflect the committed changes.