summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-29 17:38:52 +0000
committerChris Lattner <sabre@nondot.org>2005-09-29 17:38:52 +0000
commit02d3ba3db8325b73da8e4501b43d960c79066448 (patch)
tree2e761dc2e34685d68ffca6c44eb2dc5e1bd20629 /llvm/lib
parenteca4f566466fb4114fafc2712ff0f2e980eaf976 (diff)
downloadbcm5719-llvm-02d3ba3db8325b73da8e4501b43d960c79066448.tar.gz
bcm5719-llvm-02d3ba3db8325b73da8e4501b43d960c79066448.zip
consistency with other cases, no functionality change
llvm-svn: 23524
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index 8cbbabf57c9..9be798499c6 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.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<RegisterSDNode>(Node->getOperand(1))->getReg();
if (MVT::isInteger(DestType))
BuildMI(BB, PPC::OR, 2, Result).addReg(Tmp1).addReg(Tmp1);
OpenPOWER on IntegriCloud