detect conflicting joins of the alloca ptr

PHI and Select nodes (only?) may join an SS and SC alloca and cause the simple
instruction rewriting to go wrong. Prevent this with a simple analysis  for
now.
This was failing GCC torture test pr39100.