[NFC] Replace hard-coded usages of SystemZ::R15D with SpecialRegisters API
authorAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 24 Sep 2021 18:59:29 +0000 (14:59 -0400)
committerAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 24 Sep 2021 19:20:57 +0000 (15:20 -0400)
commitebe06910ce2623f525e458a91d7e5a1858163226
treec485c8ae518137b8713435881b57811dde02879e
parent7774166499d6db7fd5b246a1a694e7fe930ebcba
[NFC] Replace hard-coded usages of SystemZ::R15D with SpecialRegisters API

This patch changes hard-coded usages of SystemZ::R15D with calls to the getStackPointerRegister function. Uses in the LowerCall function are avoided to avoid merge conflicts with an expected upcoming patch.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D109702
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp