[test][LoopUnroll] Cleanup FullUnroll.ll
authorArthur Eubanks <aeubanks@google.com>
Sat, 8 Aug 2020 00:56:31 +0000 (17:56 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 14 Aug 2020 23:05:04 +0000 (16:05 -0700)
commit72effd8d5b08df54806dde68c5c505b15d56f316
treec7f21a8e838538565223401a681f1c46fa7ebad2
parente6ea8779c2e0c60007d1015cc98fe3d2642a1652
[test][LoopUnroll] Cleanup FullUnroll.ll

This is in preparation for enabling proper handling of optnone under the
NPM. Most optimizations won't run on an optnone function.

Previously the test would rely on lots of optimizations to optimize the
IR into a simple infinite loop. This is an optnone function, so clearly
that shouldn't be the case.

This IR was found by printing the module before the LoopFullUnrollerPass ran.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D85578
llvm/test/Transforms/LoopUnroll/FullUnroll.ll