summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-04 20:13:13 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-04-04 20:13:13 +0000
commita134cec06b7261587dee79eac3d0d4073d6313ab (patch)
tree29b2311d2af8105569a10ce9b10a8db8ed6ed21c /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent912154008a71f4dec52679a580b25f4c0b7bc84c (diff)
downloadllvm-a134cec06b7261587dee79eac3d0d4073d6313ab.tar.gz
llvm-a134cec06b7261587dee79eac3d0d4073d6313ab.tar.bz2
llvm-a134cec06b7261587dee79eac3d0d4073d6313ab.tar.xz
Add DAG parameter to ComputeNumSignBitsForTargetNode
This way, you can check the number of sign bits in the operands. The depth parameter it already has is pretty useless without this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 5de0b030c7..8948467997 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1074,6 +1074,7 @@ void TargetLowering::computeMaskedBitsForTargetNode(const SDValue Op,
/// targets that want to expose additional information about sign bits to the
/// DAG Combiner.
unsigned TargetLowering::ComputeNumSignBitsForTargetNode(SDValue Op,
+ const SelectionDAG &,
unsigned Depth) const {
assert((Op.getOpcode() >= ISD::BUILTIN_OP_END ||
Op.getOpcode() == ISD::INTRINSIC_WO_CHAIN ||