view clang/test/Driver/debug-pass-structure.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children
line wrap: on
line source

// Test that we print pass structure with new and legacy PM.
// RUN: %clang -fdebug-pass-structure -fintegrated-as -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --strict-whitespace
// REQUIRES: asserts

// should have proper indentation, should not print any analysis information
// CHECK-NOT: Running analysis
// CHECK: {{^}}Running{{.*}}GlobalOptPass
// CHECK: {{^}}  Running{{.*}}RequireAnalysisPass{{.*}}GlobalsAA
// CHECK: GlobalOptPass
// CHECK-NOT: Invalidating analysis

void f(void) {}