Backport cef56b9318e37e9c47fd356c76c9da522bc8c122 to v17.0
Based on a comment on https://reviews.llvm.org/D155957, revert the patch and cleanup the existing code for the PPC64 toc-pseudo peepholes before adding to it.
@llvm/issue-subscribers-backend-powerpc
/cherry-pick cef56b9318e37e9c47fd356c76c9da522bc8c122
Failed to cherry-pick: cef56b9318e37e9c47fd356c76c9da522bc8c122
https://github.com/llvm/llvm-project/actions/runs/5871619146
Please manually backport the fix and push it to your github fork. Once this is done, please add a comment like this:
/branch <user>/<repo>/<branch>
Closing in favor of https://github.com/llvm/llvm-project/issues/64716.