[SROA] Fix an error where SROA can leave "dead" allocas (#238897)
SROA may fully replace allocas with their constituent parts, but in some
cases it can leave behind "dead" allocas that have only droppable uses. The
leftover allocas are can retain debug information conflicting with the debug
information for the partitions they were split into, which may lead to assertions
failures.
This patch removes such "dead" allocas.
Fixes https://github.com/llvm/llvm-project/issues/238154