mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
R600/SI: Remove incorrect assertion
This can be a COPY to a physical register, such as VCC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec0a7cd15a
commit
5c2d295d86
@ -136,12 +136,12 @@ const TargetRegisterClass *SIFixSGPRCopies::inferRegClassFromUses(
|
||||
const MachineRegisterInfo &MRI,
|
||||
unsigned Reg,
|
||||
unsigned SubReg) const {
|
||||
// The Reg parameter to the function must always be defined by either a PHI
|
||||
// or a COPY, therefore it cannot be a physical register.
|
||||
assert(TargetRegisterInfo::isVirtualRegister(Reg) &&
|
||||
"Reg cannot be a physical register");
|
||||
|
||||
const TargetRegisterClass *RC = MRI.getRegClass(Reg);
|
||||
const TargetRegisterClass *RC
|
||||
= TargetRegisterInfo::isVirtualRegister(Reg) ?
|
||||
MRI.getRegClass(Reg) :
|
||||
TRI->getRegClass(Reg);
|
||||
|
||||
RC = TRI->getSubRegClass(RC, SubReg);
|
||||
for (MachineRegisterInfo::use_instr_iterator
|
||||
I = MRI.use_instr_begin(Reg), E = MRI.use_instr_end(); I != E; ++I) {
|
||||
|
Loading…
Reference in New Issue
Block a user