Fix a register-class comparison bug in PPCCTRLoops
authorHal Finkel <hfinkel@anl.gov>
Thu, 21 Mar 2013 23:23:34 +0000 (23:23 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 21 Mar 2013 23:23:34 +0000 (23:23 +0000)
commit891671afe508faa9f8812af77d5b0b21b315961d
tree919a6ed31ab45300e90f1553ba44e9016c5f7b75
parent83662f75ad9bd8dae9dc052ddf6f67c0c89d3c0a
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
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/test/CodeGen/PowerPC/asym-regclass-copy.ll