Propogate the Depth argument when calling
authorDan Gohman <gohman@apple.com>
Tue, 4 Aug 2009 00:24:42 +0000 (00:24 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 4 Aug 2009 00:24:42 +0000 (00:24 +0000)
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

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 095d23a334cd7b0372056672bfd6e03870f47502..a0e6054eadbdac001591b8555a76cd2d5023aa5c 100644 (file)
@@ -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;
   }