This is an archive of the discontinued LLVM Phabricator instance.

[NFC][PowerPC] Small code refactor in LoopInstrFormPrep
ClosedPublic

Authored by jsji on Sep 1 2021, 12:32 PM.

Details

Reviewers
shchenz
Group Reviewers
Restricted Project
Commits
rG8671191d26d4: [NFC][PowerPC] Small code refactor in LoopInstrFormPrep
Summary

Avoid some duplicate code.

Diff Detail

Event Timeline

jsji created this revision.Sep 1 2021, 12:32 PM
jsji requested review of this revision.Sep 1 2021, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2021, 12:32 PM
shchenz accepted this revision.Sep 1 2021, 6:15 PM

LGTM.

Thanks for doing this. I was about to commit an NFC patch for the format issues in https://reviews.llvm.org/D108750 and https://reviews.llvm.org/D105872 including this function refactor.

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

We need to fix the clang-tidy warning. And we can not just use getPointerOperand() as the load/store instruction also has a member function named by getPointerOperand.

This revision is now accepted and ready to land.Sep 1 2021, 6:15 PM
jsji updated this revision to Diff 370148.Sep 1 2021, 8:14 PM

Rename

This revision was landed with ongoing or failed builds.Sep 1 2021, 8:26 PM
This revision was automatically updated to reflect the committed changes.