SROA will replace loads of an alloca with undef when there are no
prior stores. However, multiple loads of the same memory must be
equal. Insert freeze instructions so that loads of the same alloca
with no prior store will compare correctly.
See new lit test /Transforms/SROA/same-promoted-undefs.ll for sample
IR that is fixed by this change.
Also fix up existing lit tests. @tstellar, please examine the AMD test changes.