[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

Chris Lattner sabre at nondot.org
Mon Nov 20 09:57:38 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.199 -> 1.200
---
Log message:

setOperand should not zap the operand list or add implicit operands to an 
instruction.  Doing so breaks the FP stackifier, the alpha branch selector
the sparc fpmover.

This fixes PR1012: http://llvm.org/PR1012  and CodeGen/X86/fp-stack-compare.ll


---
Diffs of the changes:  (+1 -1)

 MachineInstr.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.199 llvm/include/llvm/CodeGen/MachineInstr.h:1.200
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.199	Sat Nov 18 15:47:16 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Mon Nov 20 11:57:22 2006
@@ -490,7 +490,7 @@
 
   /// setOpcode - Replace the opcode of the current instruction with a new one.
   ///
-  void setOpcode(unsigned Op);
+  void setOpcode(unsigned Op) { Opcode = Op; }
 
   /// RemoveOperand - Erase an operand  from an instruction, leaving it with one
   /// fewer operand than it started with.






More information about the llvm-commits mailing list