summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-01-30 03:00:18 +0000
committerBill Wendling <isanbard@gmail.com>2009-01-30 03:00:18 +0000
commitfaed065e5c65a18c43f0cc00e50b907eedf8981b (patch)
tree7b38d190d52169b5a5b09a65903bf42dfda48c06 /llvm/lib/CodeGen
parentd033af09fd73ef935d16baa942e3898c2664d876 (diff)
downloadbcm5719-llvm-faed065e5c65a18c43f0cc00e50b907eedf8981b.tar.gz
bcm5719-llvm-faed065e5c65a18c43f0cc00e50b907eedf8981b.zip
Propagate debug loc info for MULHS.
llvm-svn: 63375
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9794644bc92..6511233dd19 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1603,8 +1603,8 @@ SDValue DAGCombiner::visitMULHS(SDNode *N) {
return N1;
// fold (mulhs x, 1) -> (sra x, size(x)-1)
if (N1C && N1C->getAPIntValue() == 1)
- return DAG.getNode(ISD::SRA, N0.getValueType(), N0,
- DAG.getConstant(N0.getValueType().getSizeInBits()-1,
+ return DAG.getNode(ISD::SRA, N->getDebugLoc(), N0.getValueType(), N0,
+ DAG.getConstant(N0.getValueType().getSizeInBits() - 1,
TLI.getShiftAmountTy()));
// fold (mulhs x, undef) -> 0
if (N0.getOpcode() == ISD::UNDEF || N1.getOpcode() == ISD::UNDEF)
OpenPOWER on IntegriCloud