From 397c4d9ef694031b5d48fb6ea4ca2c187a9d24e5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 May 2007 16:30:06 +0000 Subject: [PATCH] Fix CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll, and PR1473. llvm-svn: 37362 --- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 0ce8b3faeb5a..30ada12bc73d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -587,7 +587,7 @@ bool TargetLowering::SimplifyDemandedBits(SDOperand Op, uint64_t DemandedMask, } SDOperand NewSA = - TLO.DAG.getConstant(ShAmt-C1, Op.getOperand(1).getValueType()); + TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); MVT::ValueType VT = Op.getValueType(); return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, VT, InOp.getOperand(0), NewSA)); -- GitLab