Changes in directory llvm/lib/Target/SparcV8:
SparcV8InstrInfo.cpp updated: 1.8 -> 1.9 --- Log message: Tighten up some checks --- Diffs of the changes: (+1 -5) SparcV8InstrInfo.cpp | 6 +----- 1 files changed, 1 insertion(+), 5 deletions(-) Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.8 llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.9 --- llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp:1.8 Thu Apr 21 18:21:30 2005 +++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.cpp Sun Dec 18 00:40:34 2005 @@ -45,11 +45,7 @@ return true; } } else if (MI.getOpcode() == V8::ORri || MI.getOpcode() == V8::ADDri) { - if (isZeroImmed (MI.getOperand (1))) { - DstReg = MI.getOperand(0).getReg(); - SrcReg = MI.getOperand(2).getReg(); - return true; - } else if (isZeroImmed (MI.getOperand (2))) { + if (isZeroImmed(MI.getOperand(2)) && MI.getOperand(1).isRegister()) { DstReg = MI.getOperand(0).getReg(); SrcReg = MI.getOperand(1).getReg(); return true; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits