Displaying 2 results from an estimated 2 matches for "numremat".
Did you mean:
numremats
2009 May 08
0
[LLVMdev] new warnings
...discovered I needed:
Index: lib/CodeGen/TwoAddressInstructionPass.cpp
===================================================================
--- lib/CodeGen/TwoAddressInstructionPass.cpp (revision 71041)
+++ lib/CodeGen/TwoAddressInstructionPass.cpp (working copy)
@@ -935,6 +935,7 @@
++NumReMats;
} else {
bool Emitted = TII->copyRegToReg(*mbbi, mi, regA, regB,
rc, rc);
+ (void)Emitted;
assert(Emitted && "Unable to issue a copy instruction!
\n");
}
in a release-asserts build to get around a warning:
/V...
2011 Oct 12
1
[LLVMdev] Problem in TwoAddressInstructionPass::runOnMachineFunction regarding subRegs
...uctionPass::runOnMachineFunction(MachineFunction &MF) {
unsigned regASubIdx = mi->getOperand(DstIdx).getSubReg();
TII->reMaterialize(*mbbi, mi, regA, regASubIdx, DefMI, *TRI);
ReMatRegs.set(TargetRegisterInfo::virtReg2Index(regB));
++NumReMats;
} else {
- BuildMI(*mbbi, mi, mi->getDebugLoc(),
TII->get(TargetOpcode::COPY),
- regA).addReg(regB);
+ unsigned regASubIdx = mi->getOperand(DstIdx).getSubReg();
+ if (regASubIdx) {
+ BuildMI(*mbbi, mi, mi->g...