Following up on the buildbot failures, this commits relaxes some tests: instead of checking for specific IR output, it now ensures that the underlying issue (the crash), and only that, doesn't happen. llvm-svn: 366694
This re-applies r366422 with a fix for Bug PR42665 and a new regression test. llvm-svn: 366670