[llvm-commits] [llvm] r109291 - /llvm/trunk/lib/CodeGen/MachineFunction.cpp

Jim Grosbach grosbach at apple.com
Fri Jul 23 16:48:02 PDT 2010


Author: grosbach
Date: Fri Jul 23 18:48:02 2010
New Revision: 109291

URL: http://llvm.org/viewvc/llvm-project?rev=109291&view=rev
Log:
Remove too-strict assertion. We may want the vreg copy of the physical register
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

Modified:
    llvm/trunk/lib/CodeGen/MachineFunction.cpp

Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=109291&r1=109290&r2=109291&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Fri Jul 23 18:48:02 2010
@@ -397,7 +397,6 @@
 /// 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) {





More information about the llvm-commits mailing list