[Test] rewrite inline_nossp.ll
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 28 Jun 2021 20:52:41 +0000 (13:52 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 28 Jun 2021 20:52:45 +0000 (13:52 -0700)
commita00ad8599045ce7d0b5d2a64a8d22267df37bd14
tree02eb4523dd806335f2dcfc13f0558855c4a72369
parent57ad2e106767f298a0248a5894fcb3581f533f93
[Test] rewrite inline_nossp.ll

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.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D104958
llvm/test/Transforms/Inline/inline_nossp.ll