This testcase, distilled from a 5MB HDF5 bytecode file causes mem2reg to crash.
Created attachment 2 [details] testcase
This has now been fixed: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031013/008273.html