Changes in directory llvm/lib/Target/X86:
X86RegisterInfo.cpp updated: 1.165 -> 1.166 --- Log message: Fix a few dejagnu failures. e.g. fast-cc-merge-stack-adj.ll --- Diffs of the changes: (+2 -2) X86RegisterInfo.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/X86/X86RegisterInfo.cpp diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.165 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.166 --- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.165 Mon Sep 4 21:31:13 2006 +++ llvm/lib/Target/X86/X86RegisterInfo.cpp Tue Sep 5 03:32:49 2006 @@ -933,12 +933,12 @@ if ((PI->getOpcode() == X86::ADD32ri || PI->getOpcode() == X86::ADD32ri8) && PI->getOperand(0).getReg() == X86::ESP) { - NumBytes += PI->getOperand(1).getImmedValue(); + NumBytes += PI->getOperand(2).getImmedValue(); MBB.erase(PI); } else if ((PI->getOpcode() == X86::SUB32ri || PI->getOpcode() == X86::SUB32ri8) && PI->getOperand(0).getReg() == X86::ESP) { - NumBytes -= PI->getOperand(1).getImmedValue(); + NumBytes -= PI->getOperand(2).getImmedValue(); MBB.erase(PI); } else if (PI->getOpcode() == X86::ADJSTACKPTRri) { NumBytes += PI->getOperand(1).getImmedValue(); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits