summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-20 17:57:22 +0000
committerChris Lattner <sabre@nondot.org>2006-11-20 17:57:22 +0000
commita138c6c73a9e594d82958af6b9ee01108e05e7ac (patch)
treeb4ed2f14588dac72310f1a9fdf38a6de273b9173 /include/llvm/CodeGen/MachineInstr.h
parentaa9c54909de85ac966a9b8b65ff53ee11c1f298c (diff)
downloadllvm-a138c6c73a9e594d82958af6b9ee01108e05e7ac.tar.gz
llvm-a138c6c73a9e594d82958af6b9ee01108e05e7ac.tar.bz2
llvm-a138c6c73a9e594d82958af6b9ee01108e05e7ac.tar.xz
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 and CodeGen/X86/fp-stack-compare.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 907985877f..7ad33f596f 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -490,7 +490,7 @@ public:
/// 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.