It wasn't happy about this either

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-04-07 14:18:13 +00:00
parent 706be918ca
commit 273a1f956f

View File

@ -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<ConstantSDNode>(N.getOperand(1).getOperand(1))->getValue() == 3)
{