================ @@ -0,0 +1,13 @@ +// REQUIRES: x86-registered-target + +// Make sure opt-bisect works through both pass managers +// +// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-disable="inlinerpass,SROAPass,machine code sinking" -mllvm -opt-disable-verbose -emit-obj -o /dev/null 2>&1 | FileCheck %s + +// CHECK-NOT: DISABLE: running pass InlinerPass +// CHECK-NOT: DISABLE: running pass SROAPass +// CHECK-NOT: DISABLE: running pass Machine code sinking ---------------- cristianassaiante wrote:
@nikic Thank you for the suggestion! This works perfectly now and is definitely an improvement. One side effect of this change is that it also alters the output of -opt-bisect-limit, since it relies on the same instrumentation. As a result, one test from check-llvm was failing. I've updated the test to account for the new pass name output, and it now passes correctly. https://github.com/llvm/llvm-project/pull/145059 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits