Avoid some duplicate code.
Details
Details
- Reviewers
shchenz - Group Reviewers
Restricted Project - Commits
- rG8671191d26d4: [NFC][PowerPC] Small code refactor in LoopInstrFormPrep
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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. |
clang-tidy: warning: invalid case style for function 'GetPointerOperand' [readability-identifier-naming]
not useful