diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-01-30 03:00:18 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-01-30 03:00:18 +0000 |
commit | 326411dc69db3ff6335a2b1351e05c80d20c2b3c (patch) | |
tree | ded49a6be0b3bfdb73020a830f7df7e0a8d11654 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 6d3bf8c4c3a1917f255df4ff0d47f4f51261bcc0 (diff) |
Propagate debug loc info for MULHS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 9794644bc9..6511233dd1 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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) |