diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2013-03-21 23:23:34 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2013-03-21 23:23:34 +0000 |
| commit | 891671afe508faa9f8812af77d5b0b21b315961d (patch) | |
| tree | 919a6ed31ab45300e90f1553ba44e9016c5f7b75 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
| parent | 83662f75ad9bd8dae9dc052ddf6f67c0c89d3c0a (diff) | |
| download | bcm5719-llvm-891671afe508faa9f8812af77d5b0b21b315961d.tar.gz bcm5719-llvm-891671afe508faa9f8812af77d5b0b21b315961d.zip | |
Fix a register-class comparison bug in PPCCTRLoops
Thanks to Jakob for isolating the underlying problem from the
test case in r177423. The original commit had introduced
asymmetric copy operations, but these turned out to be a work-around
to the real problem (the use of == instead of hasSubClassEq in PPCCTRLoops).
llvm-svn: 177679
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 2b71f673312..cf39386c67b 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -422,15 +422,6 @@ void PPCInstrInfo::copyPhysReg(MachineBasicBlock &MBB, Opc = PPC::VOR; else if (PPC::CRBITRCRegClass.contains(DestReg, SrcReg)) Opc = PPC::CROR; - - // Asymmetric copies: - - else if (PPC::GPRCRegClass.contains(DestReg) && - PPC::G8RCRegClass.contains(SrcReg)) - Opc = PPC::OR_64; - else if (PPC::G8RCRegClass.contains(DestReg) && - PPC::GPRCRegClass.contains(SrcReg)) - Opc = PPC::OR8_32; else llvm_unreachable("Impossible reg-to-reg copy"); |

