consistency with other cases, no functionality change
authorChris Lattner <sabre@nondot.org>
Thu, 29 Sep 2005 17:38:52 +0000 (17:38 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 29 Sep 2005 17:38:52 +0000 (17:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23524 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelPattern.cpp

index 8cbbabf57c9e70943f685c2c14546252a578c526..9be798499c697629699f108f0b52695d88135d7d 100644 (file)
@@ -1058,6 +1058,8 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
     DestType = N.getValue(0).getValueType();
     if (Result == 1)
       Result = ExprMap[N.getValue(0)] = MakeReg(DestType);
+    else 
+      ExprMap[N.getValue(1)] = 1;
     Tmp1 = dyn_cast<RegisterSDNode>(Node->getOperand(1))->getReg();
     if (MVT::isInteger(DestType))
       BuildMI(BB, PPC::OR, 2, Result).addReg(Tmp1).addReg(Tmp1);