Bug originally reported in https://bugs.llvm.org/show_bug.cgi?id=44880
Analysis in analyzeGlobalAux aborts if the value is no longer of pointer type. This check for pointer type disregards if there are actually any SSA graph uses or not and thus opens up for a debug use via metadata to affect the outcome fo the analysis and eventually if transformation is applied or not.
This patch addresses that by only aborting analysis if there are any undesirable SSA graph uses.