[IndVarSimplify] Replace legacy loop-unswitch with SimpleLoopUnswitch.
authorFlorian Hahn <flo@fhahn.com>
Sat, 23 Apr 2022 13:08:47 +0000 (14:08 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sat, 23 Apr 2022 13:08:47 +0000 (14:08 +0100)
Also moves the test to use the new pass manager.

llvm/test/Transforms/IndVarSimplify/2014-06-21-congruent-constant.ll

index ef9257620e19c7dac860fc0bdaf74579217100cb..3e9f70902a9b92524275d014fb3516a1fbe07d98 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-unswitch -instcombine -indvars -enable-new-pm=0 < %s | FileCheck %s
+; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),instcombine,indvars' -S %s | FileCheck %s
 
 ; This used to crash in SCEVExpander when there were congruent phis with and
 ; undef incoming value from the loop header. The -loop-unswitch -instcombine is