From: Chris Lattner Date: Thu, 29 Sep 2005 17:38:52 +0000 (+0000) Subject: consistency with other cases, no functionality change X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=52897f827e6604b9ec0d351b81b3b9df9fb4274f;p=oota-llvm.git consistency with other cases, no functionality change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23524 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index 8cbbabf57c9..9be798499c6 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp @@ -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(Node->getOperand(1))->getReg(); if (MVT::isInteger(DestType)) BuildMI(BB, PPC::OR, 2, Result).addReg(Tmp1).addReg(Tmp1);