]> granicus.if.org Git - llvm/commit
[PowerPC] Don't list R11 as a patchpoint scratch register
authorHal Finkel <hfinkel@anl.gov>
Sat, 17 Jan 2015 03:57:34 +0000 (03:57 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 17 Jan 2015 03:57:34 +0000 (03:57 +0000)
commit962cff0c085e4f5b58e67ee73e5a82a3b2df6245
tree5271289af680b1bf5e463babae22550748ab68ff
parentaaac99269f5ca872db7b1163a29d83304852f952
[PowerPC] Don't list R11 as a patchpoint scratch register

R11's status is the same under both the PPC64 ELF V1 and V2 ABIs: it is
reserved for use as an "environment pointer" for compilation models that
require such a thing. We don't, we also don't need a second scratch register,
and because we support only "local" patchpoint call targets, we might as well
let R11 be used for anyregcc patchpoints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/ppc64-anyregcc.ll
test/CodeGen/PowerPC/ppc64-stackmap.ll