mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
406a5f5b60
Pass Execution Instrumentation interface enables customizable instrumentation of pass execution, as per "RFC: Pass Execution Instrumentation interface" posted 06/07/2018 on llvm-dev@ The intent is to provide a common machinery to implement all the pass-execution-debugging features like print-before/after, opt-bisect, time-passes etc. Here we get a basic implementation consisting of: * PassInstrumentationCallbacks class that handles registration of callbacks and access to them. * PassInstrumentation class that handles instrumentation-point interfaces that call into PassInstrumentationCallbacks. * Callbacks accept StringRef which is just a name of the Pass right now. There were some ideas to pass an opaque wrapper for the pointer to pass instance, however it appears that pointer does not actually identify the instance (adaptors and managers might have the same address with the pass they govern). Hence it was decided to go simple for now and then later decide on what the proper mental model of identifying a "pass in a phase of pipeline" is. * Callbacks accept llvm::Any serving as a wrapper for const IRUnit*, to remove direct dependencies on different IRUnits (e.g. Analyses). * PassInstrumentationAnalysis analysis is explicitly requested from PassManager through usual AnalysisManager::getResult. All pass managers were updated to run that to get PassInstrumentation object for instrumentation calls. * Using tuples/index_sequence getAnalysisResult helper to extract generic AnalysisManager's extra args out of a generic PassManager's extra args. This is the only way I was able to explicitly run getResult for PassInstrumentationAnalysis out of a generic code like PassManager::run or RepeatedPass::run. TODO: Upon lengthy discussions we agreed to accept this as an initial implementation and then get rid of getAnalysisResult by improving RepeatedPass implementation. * PassBuilder takes PassInstrumentationCallbacks object to pass it further into PassInstrumentationAnalysis. Callbacks registration should be performed directly through PassInstrumentationCallbacks. * new-pm tests updated to account for PassInstrumentationAnalysis being run * Added PassInstrumentation tests to PassBuilderCallbacks unit tests. Other unit tests updated with registration of the now-required PassInstrumentationAnalysis. Made getName helper to return std::string (instead of StringRef initially) to fix asan builtbot failures on CGSCC tests. Reviewers: chandlerc, philip.pfaffe Differential Revision: https://reviews.llvm.org/D47858 llvm-svn: 342664
367 lines
20 KiB
LLVM
367 lines
20 KiB
LLVM
; Test that the loop PM infrastructure is invalidated appropriately.
|
|
;
|
|
; Check that we always nuke the LPM stuff when the loops themselves are
|
|
; invalidated.
|
|
; RUN: opt -disable-output -disable-verify -debug-pass-manager %s 2>&1 \
|
|
; RUN: -passes='loop(no-op-loop),invalidate<loops>,loop(no-op-loop)' \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-LOOP-INV
|
|
;
|
|
; If we ended up building the standard analyses, their invalidation should nuke
|
|
; stuff as well.
|
|
; RUN: opt -disable-output -disable-verify -debug-pass-manager %s 2>&1 \
|
|
; RUN: -passes='loop(no-op-loop),invalidate<scalar-evolution>,loop(no-op-loop)' \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-SCEV-INV
|
|
;
|
|
; Also provide a test that can delete loops after populating analyses for them.
|
|
; RUN: opt -disable-output -disable-verify -debug-pass-manager %s 2>&1 \
|
|
; RUN: -passes='loop(no-op-loop,loop-deletion),invalidate<scalar-evolution>,loop(no-op-loop)' \
|
|
; RUN: | FileCheck %s --check-prefix=CHECK-SCEV-INV-AFTER-DELETE
|
|
|
|
define void @no_loops() {
|
|
; CHECK-LOOP-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on no_loops
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on no_loops
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
;
|
|
; CHECK-SCEV-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on no_loops
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on no_loops
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define void @one_loop(i1* %ptr) {
|
|
; CHECK-LOOP-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on one_loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-LOOP-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on one_loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
;
|
|
; CHECK-SCEV-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on one_loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on one_loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
|
|
entry:
|
|
br label %l0.header
|
|
|
|
l0.header:
|
|
%flag0 = load volatile i1, i1* %ptr
|
|
br i1 %flag0, label %l0.header, label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|
|
|
|
define void @nested_loops(i1* %ptr) {
|
|
; CHECK-LOOP-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on nested_loops
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-LOOP-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-LOOP-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on nested_loops
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
;
|
|
; CHECK-SCEV-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on nested_loops
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-SCEV-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on nested_loops
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
|
|
entry:
|
|
br label %l.0.header
|
|
|
|
l.0.header:
|
|
br label %l.0.0.header
|
|
|
|
l.0.0.header:
|
|
%flag.0.0 = load volatile i1, i1* %ptr
|
|
br i1 %flag.0.0, label %l.0.0.header, label %l.0.latch
|
|
|
|
l.0.latch:
|
|
%flag.0 = load volatile i1, i1* %ptr
|
|
br i1 %flag.0, label %l.0.header, label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|
|
|
|
define void @dead_loop() {
|
|
; CHECK-LOOP-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-LOOP-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-LOOP-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-LOOP-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-LOOP-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
;
|
|
; CHECK-SCEV-INV-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: AAManager
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-NEXT: Clearing all analysis results for: <possibly invalidated loop>
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-NEXT: Finished {{.*}}Function pass manager run.
|
|
;
|
|
; CHECK-SCEV-INV-AFTER-DELETE-LABEL: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: LoopAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: DominatorTreeAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: AssumptionAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: AAManager
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: TargetLibraryAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: TargetIRAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Starting {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running analysis: PassInstrumentationAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: NoOpLoopPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: LoopDeletionPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Clearing all analysis results for:
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Finished {{.*}}Loop pass manager run.
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: InvalidateAnalysisPass<{{.*}}ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Invalidating all non-preserved analyses
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Invalidating analysis: ScalarEvolutionAnalysis
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Invalidating analysis: InnerAnalysisManagerProxy<{{.*}}Loop
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: FunctionToLoopPassAdaptor<{{.*}}> on dead_loop
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Starting {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: LoopSimplifyPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Running pass: LCSSAPass
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Finished {{.*}}Function pass manager run
|
|
; CHECK-SCEV-INV-AFTER-DELETE-NEXT: Finished {{.*}}Function pass manager run.
|
|
|
|
entry:
|
|
br label %l0.header
|
|
|
|
l0.header:
|
|
br i1 false, label %l0.header, label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|