It wasn't happy about this either
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 7 Apr 2005 14:18:13 +0000 (14:18 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 7 Apr 2005 14:18:13 +0000 (14:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp

index 6c3a87a2ac6cf58e580d83eb10ebf2bdfc7f2d85..5df40ca154d6e730d79cc7f8a4f8031fe0740c79 100644 (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)
       {