This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] support loop ds form prep for lwa
ClosedPublic

Authored by shchenz on Dec 11 2019, 4:58 AM.

Details

Summary

This patch supports loop ds form prep for PPC instruction lwa.

Diff Detail

Event Timeline

shchenz created this revision.Dec 11 2019, 4:58 AM
nemanjai accepted this revision.Dec 17 2019, 10:55 AM

Other than the minor nit about readability, LGTM.

llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
850

This expression is quite unwieldy. The repeated calls to PtrValue->getType()->getPointerElementType() just look a bit messy. It would make sense to define a local variable to simplify this condition.

This revision is now accepted and ready to land.Dec 17 2019, 10:55 AM
shchenz marked 2 inline comments as done.Dec 18 2019, 5:58 PM
shchenz added inline comments.
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
850

will do this in commit patch.

This revision was automatically updated to reflect the committed changes.
shchenz marked an inline comment as done.