[PowerPC] refactor rewriteLoadStores for reusing; nfc
authorChen Zheng <czhengsz@cn.ibm.com>
Thu, 23 Sep 2021 05:48:46 +0000 (05:48 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Thu, 7 Oct 2021 12:59:20 +0000 (12:59 +0000)
commit1bf05fbc987dddebe94de7b33d810d8221eda1a5
tree4a5b8e29d6ea6446a50a2548719c12c1fc96c298
parent7ee133d3fce730d39dba68b81d8ab2285ba8b349
[PowerPC] refactor rewriteLoadStores for reusing; nfc

This is split from https://reviews.llvm.org/D108750.
Refactor rewriteLoadStores() so that we can reuse the outlined
functions.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D110314
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp