From: Andrew Lenharth Date: Thu, 7 Apr 2005 14:18:13 +0000 (+0000) Subject: It wasn't happy about this either X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=273a1f956f5bb58955515601d90279bf4c031fc6;p=oota-llvm.git It wasn't happy about this either git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21133 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 6c3a87a2ac6..5df40ca154d 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1755,7 +1755,7 @@ unsigned ISel::SelectExpr(SDOperand N) { BuildMI(BB, Alpha::S4ADDQ, 2, Result).addReg(Tmp2).addReg(Tmp1); } } - else if(N.getOperand(0).getOpcode() == ISD::SHL && isAdd && + else if(N.getOperand(1).getOpcode() == ISD::SHL && isAdd && N.getOperand(1).getOperand(1).getOpcode() == ISD::Constant && cast(N.getOperand(1).getOperand(1))->getValue() == 3) {