setOperand should not zap the operand list or add implicit operands to an
authorChris Lattner <sabre@nondot.org>
Mon, 20 Nov 2006 17:57:22 +0000 (17:57 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Nov 2006 17:57:22 +0000 (17:57 +0000)
commita138c6c73a9e594d82958af6b9ee01108e05e7ac
treeb4ed2f14588dac72310f1a9fdf38a6de273b9173
parentaa9c54909de85ac966a9b8b65ff53ee11c1f298c
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
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp