summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-30 16:30:06 +0000
committerChris Lattner <sabre@nondot.org>2007-05-30 16:30:06 +0000
commit397c4d9ef694031b5d48fb6ea4ca2c187a9d24e5 (patch)
tree86bc32aabd198f0981fc2e9e9e062b3cd26f0d81 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent4217aa376a2ea1b0852a871269d1c0afa75e7ec2 (diff)
downloadbcm5719-llvm-397c4d9ef694031b5d48fb6ea4ca2c187a9d24e5.tar.gz
bcm5719-llvm-397c4d9ef694031b5d48fb6ea4ca2c187a9d24e5.zip
Fix CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll, and PR1473.
llvm-svn: 37362
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 0ce8b3faeb5..30ada12bc73 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));
OpenPOWER on IntegriCloud