clang/test/CodeGen/new-pass-manager-opt-bisect.c
raw| 1 | // REQUIRES: x86-registered-target |
| 2 | |
| 3 | // Make sure opt-bisect works through both pass managers |
| 4 | // |
| 5 | // RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-bisect-limit=-1 -emit-obj -o /dev/null 2>&1 | FileCheck %s |
| 6 | |
| 7 | // CHECK: BISECT: running pass (1) |
| 8 | // CHECK-NOT: BISECT: running pass (1) |
| 9 | // Make sure that legacy pass manager is running |
| 10 | // CHECK: -isel |
| 11 | |
| 12 | int func(int a) { return a; } |