summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-14 22:44:13 +0000
committerChris Lattner <sabre@nondot.org>2005-10-14 22:44:13 +0000
commit2121f3ca50310d0d1d4c58e3be08a7c099caa1f9 (patch)
tree91392dc3ea5c07ef2d6ca5e46ca96d09442a2bcf /llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
parent9d7008b08d65ba1d9a0d6a5ea8e7e2c1ba9ff8c1 (diff)
downloadbcm5719-llvm-2121f3ca50310d0d1d4c58e3be08a7c099caa1f9.tar.gz
bcm5719-llvm-2121f3ca50310d0d1d4c58e3be08a7c099caa1f9.zip
Nuke PowerPCInstrFormats.h, its contents are dead. Remove the definitions
from the .td file that correspond to it llvm-svn: 23736
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index ee428f9b1bc..6073d6031ee 100644
--- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -342,6 +342,13 @@ void PowerPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) {
///
void PowerPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
+
+/// NOTE: THIS SHOULD NEVER BE CHECKED IN. STAY LOCAL IN CHRIS'S TREE.
+ if (0 && MI->getOpcode() == PPC::OR)
+ assert((MI->getOperand(0).getReg() != MI->getOperand(1).getReg() ||
+ MI->getOperand(2).getReg() != MI->getOperand(1).getReg()) &&
+ "noop copy emitted!");
+
// Check for slwi/srwi mnemonics.
if (MI->getOpcode() == PPC::RLWINM) {
bool FoundMnemonic = false;
OpenPOWER on IntegriCloud