<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylkstupDAQRb_GbEqDjA0NLFh01Ek0i2ymv8DgMnjajVt-5PH3U5COIo00q5Esu4py3XssavT6Y2AHPmN6Uvn9vGRjHL6oeGGiY6KnEiR1wQgKKD7hLS3bt5sK6ooJA4w5gfYYVybaBGpKWTn3ATki2ATJg7NXCgJOOUTrV9CbRsn4ifHj5_4TYp5njNSutV1nSAuC8c75N8qYvF8j3_vaUwBrgCh3JmDyEc7ocErkcTo-b13y-KLef30Zf7LTk-7dQEwphxWUi8jkw18mhR6k7mWvCpXT4sMwcV2ZCnWRgxuWlG5x8xBPtGabljyWk79S4tzr1_HjFvxvQqLUxpgxUtCInsSXoW36rh3bvhG15kaKqtIdnW3DJ9TdoS6cGtHFgTUPTIgV32CXoJg1p-L_CewguBC84pIfJK9lWRtTa5ykaaRq225iNcersq7cdEof5iIMu-SY50hFZ2OK30UVo51XxB2YCJNNDodzUtMF_CsGQ38TdMZtJPI6-rxq1PCvufuel2LnHnboPxx12Xg>52960</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Stack overflow due to unbounded getFauxShuffleMask() recursion
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
c0d1f1ed
</td>
</tr>
</table>
<pre>
`getFauxShuffleMask()` takes a `Depth` parameter but doesn't actually use it to limit recursion depth.
I suggest adding the following:
```
if (Depth > SelectionDAG::MaxRecursionDepth)
return alse;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1kM9u5CAMxp-GXKyNGEia5MBhqtmu9tDLzhOQYBI6TBiB6Z-3X5JOVWmllRB8xtjfz4zBfCj2wGekJ53fz0u21uOzThcmeiaGkgLSF0ygoegT3mjZ7m466isSRhgzgQmYViY6Aj1R1t5_QE4IjoACeHctIuKUY3JhBbP1qBk_MX783H9DyvOMqZQb49YZaEGwwfvwViIm78-K733tIYCzUCh3JmDyJ5zR40TF43T8tVXJ47N-__Nl_MleRrpXQ2GiHFfQPiGTj_-YVEZJM8hBV-TIozqTni4QXjHawgUm4zZcXseQV4MG_veD35NXOXq1EN3SBieeypodLXmsp3AtgfevX8ePWwwvZZYSupQypiJaMRSqRYkee97zzsrRNKNtJtsPbYO251Y3pmsqr0f0SbH2kQmx4hvsLYpm7alySnAh-IFL_iB5I-vG2sbgJG0rddf1E2s4XrXz9cZRhzhXUe1IY55TSXqXKH0ndUpuXhF3u9JfZ1pCVBM3B3tAU-3eamf_C36axPc">