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 | 206ad10c14e5dda3bf7b2dc8faf84b2f75124844 (patch) | |
tree | 30950890ef3e28f3727462f1fc1b54acd8e98076 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | f6e75c3435de09bfd5a043c88e3a899da2bcc84f (diff) | |
download | external_llvm-206ad10c14e5dda3bf7b2dc8faf84b2f75124844.tar.gz external_llvm-206ad10c14e5dda3bf7b2dc8faf84b2f75124844.tar.bz2 external_llvm-206ad10c14e5dda3bf7b2dc8faf84b2f75124844.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 095d23a334..a0e6054ead 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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; } |