[test] Fix scev-expander-preserve-lcssa.ll under NPM
authorArthur Eubanks <aeubanks@google.com>
Tue, 8 Dec 2020 06:57:37 +0000 (22:57 -0800)
committerArthur Eubanks <aeubanks@google.com>
Thu, 10 Dec 2020 17:46:08 +0000 (09:46 -0800)
commit512a64de6a977891b52b59c765f7775e0c8ad6cf
tree5dc635b9efc769c7a805662dbc5a4b4a5dd4dd1d
parentac25e8628c443cddd841c6c91d1c9e23e88969e5
[test] Fix scev-expander-preserve-lcssa.ll under NPM

The NPM runs loop passes over loops in forward program order, rather
than the legacy loop PM's reverse program order. This seems to produce
better results as shown here.

I verified that changing the loop order to reverse program order results
in the same IR with the NPM.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D92817
llvm/test/Transforms/IndVarSimplify/scev-expander-preserve-lcssa.ll