Backport ce658829c9ebd23066f4f0aa5dc686350e5f9ba4 to 17.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 ce658829c9ebd23066f4f0aa5dc686350e5f9ba4
/branch llvm/llvm-project-release-prs/issue64716
/pull-request llvm/llvm-project-release-prs#591
/cherry-pick cef56b9318e37e9c47fd356c76c9da522bc8c122
Failed to cherry-pick: cef56b9318e37e9c47fd356c76c9da522bc8c122
https://github.com/llvm/llvm-project/actions/runs/5927965895
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>
/cherry-pick ce658829c9ebd23066f4f0aa5dc686350e5f9ba4 cef56b9318e37e9c47fd356c76c9da522bc8c122
/branch llvm/llvm-project-release-prs/issue64716
abandoning in favour of https://github.com/llvm/llvm-project/issues/64869
nvm, I see @nikic already updated this PR. I'll close the new one instead.