summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.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
commitcf6f688a403f046ec9f81dfbfd04621ff7777072 (patch)
tree4225b3c2933bd2dd5cb843fd7e210cda129d6c31 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent5e1e4316c4b38314b269d207a1aaddc63dbdb4a6 (diff)
downloadbcm5719-llvm-cf6f688a403f046ec9f81dfbfd04621ff7777072.tar.gz
bcm5719-llvm-cf6f688a403f046ec9f81dfbfd04621ff7777072.zip
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. llvm-svn: 205649
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d11ce804244..8f624508398 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2422,7 +2422,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{
Op.getOpcode() == ISD::INTRINSIC_WO_CHAIN ||
Op.getOpcode() == ISD::INTRINSIC_W_CHAIN ||
Op.getOpcode() == ISD::INTRINSIC_VOID) {
- unsigned NumBits = TLI->ComputeNumSignBitsForTargetNode(Op, Depth);
+ unsigned NumBits = TLI->ComputeNumSignBitsForTargetNode(Op, *this, Depth);
if (NumBits > 1) FirstAnswer = std::max(FirstAnswer, NumBits);
}
OpenPOWER on IntegriCloud