1 ; RUN: opt -passes='cgscc(function(instcombine))' -debug-pass-manager -disable-output < %s 2>&1 | FileCheck %s
3 ; We want to run passes on every SCC in a RefSCC without bailing even if one of the SCCs becomes a child SCC.
5 ; This prevents explosive behavior on huge RefSCCs where a non-trivial amount of
6 ; SCCs in the RefSCC become their own RefSCC as passes run on them. Otherwise we
7 ; end up visiting the huge RefSCC the number of times that an SCC is split out
8 ; rather than just twice.
10 ; CHECK: Running pass: InstCombinePass on f1
11 ; CHECK-NOT: InstCombinePass
12 ; CHECK: Running pass: InstCombinePass on f2
13 ; CHECK-NOT: InstCombinePass
14 ; CHECK: Running pass: InstCombinePass on f3
15 ; CHECK-NOT: InstCombinePass
16 ; CHECK: Running pass: InstCombinePass on f4
17 ; CHECK-NOT: InstCombinePass
19 @a1 = alias void (), ptr @f1
20 @a2 = alias void (), ptr @f2
21 @a3 = alias void (), ptr @f3
22 @a4 = alias void (), ptr @f4
32 call void @a1() readnone nounwind willreturn
37 call void @a1() readnone nounwind willreturn
42 call void @a1() readnone nounwind willreturn