diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-03-09 22:47:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-03-09 22:47:38 +0000 |
commit | 17adafc6c179f3bad757f932a13522851ee5171f (patch) | |
tree | 41102e58cdacc628332f62f671458e5138ee3867 /lib/Target/X86/X86RegisterInfo.cpp | |
parent | 7bff3e7c1bb1ad4ce061c17baa3cd84e81cef8d1 (diff) | |
download | external_llvm-17adafc6c179f3bad757f932a13522851ee5171f.zip external_llvm-17adafc6c179f3bad757f932a13522851ee5171f.tar.gz external_llvm-17adafc6c179f3bad757f932a13522851ee5171f.tar.bz2 |
Change the definition of TargetRegisterInfo::getCrossCopyRegClass to be more
flexible.
If it returns a register class that's different from the input, then that's the
register class used for cross-register class copies.
If it returns a register class that's the same as the input, then no cross-
register class copies are needed (normal copies would do).
If it returns null, then it's not at all possible to copy registers of the
specified register class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index fe98cac..1f464f4 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -337,7 +337,7 @@ X86RegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const { else return &X86::GR32RegClass; } - return NULL; + return RC; } unsigned |