diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-04 00:24:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-04 00:24:42 +0000 |
commit | 15873a8ff71f6227a5f7504017e6c06d5722859b (patch) | |
tree | 891be88ebfdf7895fb59a6c0452fc36add3e2285 /llvm/lib/CodeGen | |
parent | 90e2e07bd5101c1bad082aaa01c8127b65e95f22 (diff) | |
download | bcm5719-llvm-15873a8ff71f6227a5f7504017e6c06d5722859b.tar.gz bcm5719-llvm-15873a8ff71f6227a5f7504017e6c06d5722859b.zip |
Propogate the Depth argument when calling
TLI.computeMaskedBitsForTargetNode from ComputeMaskedBits, since
the former may call back into the latter. This fixes a major
compile time problem on a testcase that happnened to hit this
in a particularly bad way, PR4643.
llvm-svn: 78023
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 095d23a334c..a0e6054eadb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1987,7 +1987,8 @@ void SelectionDAG::ComputeMaskedBits(SDValue Op, const APInt &Mask, case ISD::INTRINSIC_WO_CHAIN: case ISD::INTRINSIC_W_CHAIN: case ISD::INTRINSIC_VOID: - TLI.computeMaskedBitsForTargetNode(Op, Mask, KnownZero, KnownOne, *this); + TLI.computeMaskedBitsForTargetNode(Op, Mask, KnownZero, KnownOne, *this, + Depth); } return; } |