[GlobalOpt] Don't evaluate large memset (PR62191)
If the memset is large, checking every single byte of the global may be very slow. Add an upper bound on the size of memset we handle. For the common special case of memset zeroinitializer to zero, add a fastpath that checks just that and is not length limited. Fixes https://github.com/llvm/llvm-project/issues/62191.
Loading
Please sign in to comment