[llvm-branch-commits] [llvm-branch] r109307 - /llvm/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp

Daniel Dunbar daniel at zuster.org
Fri Jul 23 18:02:05 PDT 2010


Author: ddunbar
Date: Fri Jul 23 20:02:05 2010
New Revision: 109307

URL: http://llvm.org/viewvc/llvm-project?rev=109307&view=rev
Log:
Merge r109291:
--
Author: Jim Grosbach <grosbach at apple.com>
Date:   Fri Jul 23 23:48:02 2010 +0000

    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/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp

Modified: llvm/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp?rev=109307&r1=109306&r2=109307&view=diff
==============================================================================
--- llvm/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/branches/Apple/williamson/lib/CodeGen/MachineFunction.cpp Fri Jul 23 20:02:05 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-branch-commits mailing list