MachineInstrBundle: Fix reversed isSuperRegisterEq() call
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.cpp
index d4cae7bed8c0324c9df907b621ef1323bf3cb040..bd4d39ec981a4fd074220e94723e8c00246b71da 100644 (file)
@@ -4466,6 +4466,10 @@ void X86InstrInfo::copyPhysReg(MachineBasicBlock &MBB,
       // (unnecessarily) saving+restoring a dead register. However the
       // MachineVerifier expects operands that read from dead registers
       // to be marked with the "undef" flag.
+      // An example of this can be found in
+      // test/CodeGen/X86/peephole-na-phys-copy-folding.ll and
+      // test/CodeGen/X86/cmpxchg-clobber-flags.ll when using
+      // -verify-machineinstrs.
       BuildMI(MBB, MI, DL, get(Push)).addReg(AX, getKillRegState(true));
     }
     if (FromEFLAGS) {