This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] [NFC] rename PPCLoopPreIncPrep to PPCLoopInstrFormPrep after D67088
ClosedPublic

Authored by shchenz on Nov 17 2019, 8:28 PM.

Details

Summary

Afer https://reviews.llvm.org/D67088, PPCLoopPreIncPrep pass can prepare more instruction forms except pre inc form, like DS/DQ forms.

This patch is a follow-up of https://reviews.llvm.org/D67088 to rename the pass name.

Diff Detail

Event Timeline

shchenz created this revision.Nov 17 2019, 8:28 PM
jsji requested changes to this revision.Nov 25 2019, 7:43 AM

I don't think we should delete PPCLoopPreIncPrep.cpp, then add a new file PPCLoopInstrFormPrep.cpp.

I think we should use git mv to rename it, so that we can keep the history.

diff --git a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
similarity index 100%
rename from llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
rename to llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
This revision now requires changes to proceed.Nov 25 2019, 7:43 AM
asbirlea removed a subscriber: asbirlea.Nov 25 2019, 9:35 AM
shchenz updated this revision to Diff 230997.Nov 25 2019, 6:52 PM

Address @jsji comments.

I don't think we should delete PPCLoopPreIncPrep.cpp, then add a new file PPCLoopInstrFormPrep.cpp.

I think we should use git mv to rename it, so that we can keep the history.

diff --git a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
similarity index 100%
rename from llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
rename to llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp

Thanks for your comments. I already used git mv but seems it still shows all file content as the difference. So I created another patch https://reviews.llvm.org/D70704 to get better diff.

jsji accepted this revision.Nov 26 2019, 5:58 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Nov 26 2019, 5:58 PM
This revision was automatically updated to reflect the committed changes.