summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pgo-sample-thinlto-summary.c
AgeCommit message (Collapse)Author
2023-06-10[CodeGen] Remove mentions of OLDPMKazu Hirata
We stopped testing with -check-prefix=SAMPLEPGO-OLDPM and -check-prefix=THINLTO-OLDPM as of: commit 8a7a28075b7fa70d56b131c10a4d1add777d5830 Author: Thomas Preud'homme <thomasp@graphcore.ai> Date: Fri Sep 17 10:23:40 2021 +0100
2022-04-11[test] Remove references to -fexperimental-new-pass-manager in testsArthur Eubanks
This has been the default for a while and we're in the process of removing the legacy PM optimization pipeline.
2021-09-17Fix CodeGen/pgo-sample-thinlto-summary.c with old PMThomas Preud'homme
Re-add -fexperimental-new-pass-manager to Clang::CodeGen/pgo-sample-thinlto-summary.c for the test to work on builds that still default to the old pass manager. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D109956
2021-09-16[PGO] Change ThinLTO test for targets with loop unrolling disabledSherwin da Cruz
I am working on a target in a downstream LLVM repo, and it seems that if a target backend chooses to disable loop unrolling this test would fail. A solution would be to modify the test to search for a different string instead. The specific test checks for `if.true.direct_targ` which appears in the output when thinlto is not used (ie samplepgo). The same is true for `if.false.orig_indirect`. However, if a target disables loop unrolling in the backend, the test fails as `if.true.direct_targ` no longer appears, though `if.false.orig_indirect` still does. This can be seen by using a clang pragma to disable loop unrolling in the `unroll()` function. For reference, the following files are the outputs of the last 2 test functions being compiled as the test case does, with and without thinlto, and with and without loop unrolling on the latest x86 clang build. The loop unrolling pragma was used to simulate the loop unrolling being disabled in a backend. ``` // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -o out.ll // RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -flto=thin -o out.ll ``` Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D109234
2018-02-23Bring r325915 back.Rafael Espindola
The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
2017-07-07Enable the new PM + SamlePGO + ThinLTO testing.Dehao Chen
Summary: This patch should be enabled after https://reviews.llvm.org/D34895 Reviewers: chandlerc, tejohnson, davidxl Reviewed By: tejohnson Subscribers: sanjoy, mehdi_amini, inglorion, eraman, cfe-commits Differential Revision: https://reviews.llvm.org/D34896 llvm-svn: 307438
2017-06-29[PM] Add support for sample PGO in the new pass manager (clang-side)Dehao Chen
Summary: This implements the clang bits of https://reviews.llvm.org/D34720, and add corresponding test to verify if it worked. Reviewers: chandlerc, davidxl, davide, tejohnson Reviewed By: chandlerc, tejohnson Subscribers: tejohnson, sanjoy, mehdi_amini, eraman, cfe-commits Differential Revision: https://reviews.llvm.org/D34721 llvm-svn: 306764
2017-06-27Update the test comment to clarify the intention of the test.Dehao Chen
llvm-svn: 306434
2017-06-27Update test for enabling ICP for AutoFDO.Dehao Chen
Summary: This is the test update patch for https://reviews.llvm.org/D34662 Reviewers: davidxl Reviewed By: davidxl Subscribers: cfe-commits, sanjoy, mehdi_amini, eraman, llvm-commits Differential Revision: https://reviews.llvm.org/D34663 llvm-svn: 306430
2017-04-25[PGO/tests] Update comment to reflect reality.Davide Italiano
llvm-svn: 301344
2017-04-25[PGO] Update test now that we don't call IndirectCallPromotion.Davide Italiano
llvm-svn: 301339
2017-03-23Update the SamplePGO test to verify that unroll/icp is not invoked in ↵Dehao Chen
thinlto compile phase. Summary: This is the test added for https://reviews.llvm.org/D31217 Reviewers: tejohnson, mehdi_amini Reviewed By: tejohnson Subscribers: cfe-commits, Prazek Differential Revision: https://reviews.llvm.org/D31219 llvm-svn: 298647
2017-03-21Clang change: Do not inline hot callsites for samplepgo in thinlto compile ↵Dehao Chen
phase. Summary: Because SamplePGO passes will be invoked twice in ThinLTO build: once at compile phase, the other at backend. We want to make sure the IR at the 2nd phase matches the hot part in pro file, thus we do not want to inline hot callsites in the first phase. Reviewers: tejohnson, eraman Reviewed By: tejohnson Subscribers: mehdi_amini, cfe-commits, Prazek Differential Revision: https://reviews.llvm.org/D31202 llvm-svn: 298429