2020-12-21 09:13:15 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
|
2020-12-21 05:47:46 +08:00
|
|
|
// Make sure opt-bisect works through both pass managers
|
|
|
|
//
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 -fexperimental-new-pass-manager %s -mllvm -opt-bisect-limit=-1 -emit-obj -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK: BISECT: running pass (1)
|
|
|
|
// CHECK-NOT: BISECT: running pass (1)
|
|
|
|
// Make sure that legacy pass manager is running
|
|
|
|
// CHECK: Instruction Selection
|
|
|
|
|
|
|
|
int func(int a) { return a; }
|