]> granicus.if.org Git - llvm/commit
Make a test actually test what it set out to test.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 12 Jan 2017 03:49:07 +0000 (03:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 12 Jan 2017 03:49:07 +0000 (03:49 +0000)
commit5bd1c1d8c067e846dd1eaad932be5288ec033ee2
treea166c692f826ab758a0f6d5761a073b6e5c3d4f4
parent94bf68d551b29ed34deda409d5a50f35856c4c96
Make a test actually test what it set out to test.

This test seems to have largely been relying on asserts being tripped.
It had a very specific and somewhat uninteresting grep of the output,
but it never really did anything to cause SCEV to be preserved across
loop simplify, certainly not explicitly. And a later addition to it
actually added CHECK lines despite the test never running FileCheck.

Now we actually print SCEV before and after loop simplify to make sure
it is *changing* and being *updated*. Which seems to be much more likely
the point of the test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291740 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/LoopSimplify/preserve-scev.ll