While adding remark based tests in D104944, I noticed that the tests
that we were passing were passing for the wrong reason. They were
passing because the dynamic allocas were preventing inlining, not the
code I added in D91816.
Rewrite and simplify the test. Add remark based checks to validate we're
preventing inline substitutions for the right reasons.
Looks like this fails with the legacy pass manager. Could you please add -enable-new-pm=1 if this is intended to be limited to the new pass manager?