summaryrefslogtreecommitdiff
path: root/test/CodeGen/pgo-sample.c
Commit message (Collapse)AuthorAgeFilesLines
* [clang][NewPM] Remove exception handling before loading pgo sample profile dataLeonard Chan2019-06-241-3/+10
| | | | | | | | | This patch ensures that SimplifyCFGPass comes before SampleProfileLoaderPass on PGO runs in the new PM and fixes clang/test/CodeGen/pgo-sample.c. Differential Revision: https://reviews.llvm.org/D63626 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364201 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r307445 as it breaks on certain platforms.Dehao Chen2017-07-071-32/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307449 91177308-0d34-0410-b5e6-96231b3b80d8
* Add sample PGO integration test to cover profile annotation and inlining.Dehao Chen2017-07-071-4/+32
| | | | | | | | | | | | | | Summary: The patch makes the integration test cover major sample PGO components. Reviewers: davidxl Reviewed By: davidxl Subscribers: sanjoy, cfe-commits Differential Revision: https://reviews.llvm.org/D34725 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307445 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove InstructionCombining and its related pass from sample pgo passes as ↵Dehao Chen2016-09-191-3/+0
| | | | | | | | | | | | | | we can handle "invoke" correctly. Summary: We previously relies on InstructionCombining pass to remove invoke instructions. Now that we can inline invoke instructions correctly, we do not need these passes any more. Reviewers: dnovillo Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24730 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281910 91177308-0d34-0410-b5e6-96231b3b80d8
* Invoke simplifycfg and sroa before instcombine.Dehao Chen2016-06-231-0/+3
| | | | | | | | | | | | Summary: InstCombine needs to be performed after simplifycfg and sroa, otherwise it may make bad optimization decisions. Reviewers: davidxl, wmi, dnovillo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D21568 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273606 91177308-0d34-0410-b5e6-96231b3b80d8
* Invoke PruneEH pass before Sample Profile pass.Dehao Chen2016-06-211-0/+6
Summary: We need to call PruneEH pass before AutoFDO pass so that some EH-related calls can get inlined in Sample Profile pass. Reviewers: davidxl, dnovillo Subscribers: junbuml, llvm-commits Differential Revision: http://reviews.llvm.org/D21197 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273298 91177308-0d34-0410-b5e6-96231b3b80d8