From: Evan Cheng Date: Wed, 9 Mar 2011 23:15:40 +0000 (+0000) Subject: Restore the default implementation of getCrossCopyRegClass: no need for cross-regclas... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0f24d49acae52fc66f72136bbe4891a9a8c9cd36;p=oota-llvm.git Restore the default implementation of getCrossCopyRegClass: no need for cross-regclass copies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127371 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 4c63568786b..d06cdc4e8e5 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -594,7 +594,7 @@ public: /// the specified class. virtual const TargetRegisterClass * getCrossCopyRegClass(const TargetRegisterClass *RC) const { - return NULL; + return RC; } /// getRegPressureLimit - Return the register pressure "high water mark" for