[PATCH] D16730: [PGO] cc1 option names change for profile instrumentation (NFC)

Rong Xu via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 30 15:02:44 PST 2016


On Fri, Jan 29, 2016 at 6:01 PM, Sean Silva <chisophugis at gmail.com> wrote:
> silvas added inline comments.
>
> ================
> Comment at: test/Profile/c-generate.c:3
> @@ +2,3 @@
> +// RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm -fprofile-instrument=clang -fprofile-instrument-path=c-generate-test.profraw | FileCheck %s --check-prefix=PROF-INSTR-PATH
> +// RUN: %clang %s -S -o - -emit-llvm -Xclang -fprofile-instrument=none -fprofile-generate | FileCheck %s --check-prefix=PROF-INSTR-NONE
> +// RUN: not %clang %s -S -o - -emit-llvm -Xclang -fprofile-instrument=garbage -fprofile-generate |& FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
> ----------------
> Why are you not using `%clang_cc1` consistently here?

I was intending to test the cc1 option -fprofile-instrument=none to
overwrite the  driver option (which adds -fprofile-instrument=clang).
But if you think that's not needed, I can just test
-fprofile-instrument=none
>
> ================
> Comment at: test/Profile/c-generate.c:4
> @@ +3,3 @@
> +// RUN: %clang %s -S -o - -emit-llvm -Xclang -fprofile-instrument=none -fprofile-generate | FileCheck %s --check-prefix=PROF-INSTR-NONE
> +// RUN: not %clang %s -S -o - -emit-llvm -Xclang -fprofile-instrument=garbage -fprofile-generate |& FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
> +//
> ----------------
> `|&` doesn't seem to be used in other tests inside clang and llvm. A more portable alternative is probably required to pass the bots.

As David suggest, I'll change it 2>&1
>
>
> http://reviews.llvm.org/D16730
>
>
>


More information about the llvm-commits mailing list