[SCEV] Add a threshold to restrict number of mul operands to be inlined into SCEV
This is to solve the same slow-compile issue in SCEV that D3127 was trying to solve. But that patch is no longer active.
Without a threshold for mul ops inlining, getMulExpr could have exponential time complexity in the worst case. The case in PR18606 is an example that causes clang to hang.
However, this patch does not completely solve the slow-compile issue in SCEV. SCEVRewriteVisiter is another bottleneck that could take exponential time to finish. I will upload another patch to fix it.