[CodeGenPrepare] Limit recursion depth for collectBitParts
authorDavid Stuttard <david.stuttard@amd.com>
Thu, 9 May 2019 15:02:10 +0000 (15:02 +0000)
committerDavid Stuttard <david.stuttard@amd.com>
Thu, 9 May 2019 15:02:10 +0000 (15:02 +0000)
commit411488b11edf0fe16d8e839451d97f974255d00b
tree0ca56a12a15fae7b21c26baf0b68e34dd6aee244
parentf58a5c8803e3d06014031a4551ea9429db9662d9
[CodeGenPrepare] Limit recursion depth for collectBitParts

Summary:
Seeing some issues for windows debug pathological cases with collectBitParts
recursion (1525 levels of recursion!)
Setting the limit to 64 as this should be sufficient - passes all lit cases

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61728

Change-Id: I7f44cdc6c1badf1c2ccbf1b0c4b6afe27ecb39a1
llvm-svn: 360347
llvm/lib/Transforms/Utils/Local.cpp