Remove too-strict assertion. We may want the vreg copy of the physical register
authorJim Grosbach <grosbach@apple.com>
Fri, 23 Jul 2010 23:48:02 +0000 (23:48 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 23 Jul 2010 23:48:02 +0000 (23:48 +0000)
to be of a different register class. For example, in Thumb1 if the live-in is
a high register, we want the vreg to be a low register. rdar://8224931

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109291 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineFunction.cpp

index 666120f032c6032e2cbf6e3beee26f6befb0ba47..9a52b7b0b411252bbcfff1c9b8ec3f66024207e5 100644 (file)
@@ -397,7 +397,6 @@ void MachineFunction::viewCFGOnly() const
 /// create a corresponding virtual register for it.
 unsigned MachineFunction::addLiveIn(unsigned PReg,
                                     const TargetRegisterClass *RC) {
-  assert(RC->contains(PReg) && "Not the correct regclass!");
   MachineRegisterInfo &MRI = getRegInfo();
   unsigned VReg = MRI.getLiveInVirtReg(PReg);
   if (VReg) {