| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[llvm-profdata] Add block percent to detailed summary (#105915) | 1 年前 | |
[debuginfod] Use dedicated cache dir for tests | 3 年前 | |
[llvm-cov] Fix the test of bnary-id-lookup.c after the commit cd8fe1dbc. | 2 年前 | |
[compiler-rt] Fix binary-id-offset.c test to not require shell. (#157954) As part of our migration for making lit internal shell be the default, this updates binary-id-offset.c to no longer require shell (at the cost of duplicating some code). | 10 个月前 | |
[llvm][profile] Add padding after binary IDs Some tests with binary IDs would fail with error: no profile can be merged. This is because raw profiles could have unaligned headers when emitting binary IDs. This means padding should be emitted after binary IDs are emitted to ensure everything else is aligned. This patch adds padding after each binary ID to ensure the next binary ID size is 8-byte aligned. This also adds extra checks to ensure we aren't reading corrupted data when printing binary IDs. Differential Revision: https://reviews.llvm.org/D110365 | 4 年前 | |
[compiler-rt] Fix binary-id-path.c after da053415d214d6a66ff5f8c69eb35b2c9ada9caf | 1 年前 | |
[llvm-profdata] Add block percent to detailed summary (#105915) | 1 年前 | |
compiler-rt: Rename remaining cc files in test/profile to cpp See r367803 and similar other changes. llvm-svn: 367858 | 6 年前 | |
[compiler-rt][profile] Make corrupted-profile.c more robust This test specifically checks that profiles are not mergeable if there's a change in the CounterPtr in the profile header. The test manually changes CounterPtr by explicitly calling memset on some offset into the profile file. This test would fail if binary IDs were emitted because the offset calculation does not take into account the binary ID sizes. This patch updates the test to use types provided in profile/InstrProfData.inc to make it more resistant to profile layout changes. Differential Revision: https://reviews.llvm.org/D110277 | 4 年前 | |
[compiler-rt][test] Expand and Rewrite Tests for lit Internal Shell Compatibility (#106115) This patch addresses compatibility issues with the lit internal shell by expanding and rewriting test scripts in the compiler-rt subproject. These changes were prompted by the FileNotFound unresolved errors encountered during the testing process, specifically when running the command LIT_USE_INTERNAL_SHELL=1 ninja check compiler-rt. **Why the error occurred:** The error occurred because the original test scripts used process substitution (<(...)) in their diff commands. Process substitution creates temporary files or FIFOs to hold command output, and these are then passed to diff. However, the lit internal shell, which is more limited than a typical shell like bash, does not support process substitution. When lit tries to execute these commands, it is unable to create or access the temporary files or FIFOs generated by process substitution. As a result, lit attempts to open a file or directory that doesn't exist, leading to the FileNotFoundError. **Changes Made:** - Instead of using process substitution, the commands now explicitly redirect the output of llvm-profdata show to temporary files before performing the diff comparison. This ensures that the lit internal shell can correctly find and open these files, resolving the FileNotFoundError. [This change is relevant [RFC] Enabling the lit internal shell by Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179) fixes: #106111 | 1 年前 | |
[compiler-rt][test] Expand and Rewrite Tests for lit Internal Shell Compatibility (#106115) This patch addresses compatibility issues with the lit internal shell by expanding and rewriting test scripts in the compiler-rt subproject. These changes were prompted by the FileNotFound unresolved errors encountered during the testing process, specifically when running the command LIT_USE_INTERNAL_SHELL=1 ninja check compiler-rt. **Why the error occurred:** The error occurred because the original test scripts used process substitution (<(...)) in their diff commands. Process substitution creates temporary files or FIFOs to hold command output, and these are then passed to diff. However, the lit internal shell, which is more limited than a typical shell like bash, does not support process substitution. When lit tries to execute these commands, it is unable to create or access the temporary files or FIFOs generated by process substitution. As a result, lit attempts to open a file or directory that doesn't exist, leading to the FileNotFoundError. **Changes Made:** - Instead of using process substitution, the commands now explicitly redirect the output of llvm-profdata show to temporary files before performing the diff comparison. This ensures that the lit internal shell can correctly find and open these files, resolving the FileNotFoundError. [This change is relevant [RFC] Enabling the lit internal shell by Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179) fixes: #106111 | 1 年前 | |
[compiler-rt][test] Expand and Rewrite Tests for lit Internal Shell Compatibility (#106115) This patch addresses compatibility issues with the lit internal shell by expanding and rewriting test scripts in the compiler-rt subproject. These changes were prompted by the FileNotFound unresolved errors encountered during the testing process, specifically when running the command LIT_USE_INTERNAL_SHELL=1 ninja check compiler-rt. **Why the error occurred:** The error occurred because the original test scripts used process substitution (<(...)) in their diff commands. Process substitution creates temporary files or FIFOs to hold command output, and these are then passed to diff. However, the lit internal shell, which is more limited than a typical shell like bash, does not support process substitution. When lit tries to execute these commands, it is unable to create or access the temporary files or FIFOs generated by process substitution. As a result, lit attempts to open a file or directory that doesn't exist, leading to the FileNotFoundError. **Changes Made:** - Instead of using process substitution, the commands now explicitly redirect the output of llvm-profdata show to temporary files before performing the diff comparison. This ensures that the lit internal shell can correctly find and open these files, resolving the FileNotFoundError. [This change is relevant [RFC] Enabling the lit internal shell by Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179) fixes: #106111 | 1 年前 | |
[Coverage] Fix mapping for do-while loops with terminating statements (#139777) The current region mapping for do-while loops that contain statements such as break or continue results in inaccurate line coverage reports for the line following the loop. This change handles terminating statements the same way that other loop constructs do, correcting the region mapping for accurate reports. It also fixes a fragile test relying on exact line numbers. Fixes #139122 | 1 年前 | |
[Coverage] Add testing to validate code coverage for exceptions (#133463) While investigating an issue with code coverage reporting around exceptions it was useful to have a baseline of what works today. This change adds end-to-end testing to validate code coverage behavior that is currently working with regards to exception handling. | 1 年前 | |
[test][profile] Disable failing PPC tests Tests were acidentally included into target executed on sanitizer-ppc64be-linux bot. It does not look like there were OK before. | 2 年前 | |
[test][profile] Disable failing PPC tests Tests were acidentally included into target executed on sanitizer-ppc64be-linux bot. It does not look like there were OK before. | 2 年前 | |
Reland [Coverage] Fix region termination for GNU statement expressions (#132222) Relands #130976 with adjustments to test requirements. Calls to __noreturn__ functions result in region termination for coverage mapping. But this creates incorrect coverage results when __noreturn__ functions (or other constructs that result in region termination) occur within [GNU statement expressions][1]. In this scenario an extra gap region is introduced within VisitStmt, such that if the following line does not introduce a new region it is unconditionally counted as uncovered. This change adjusts the mapping such that terminate statements within statement expressions do not propagate that termination state after the statement expression is processed. [1]: https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html Fixes #124296 | 1 年前 | |
[test][profile] Disable failing PPC tests Tests were acidentally included into target executed on sanitizer-ppc64be-linux bot. It does not look like there were OK before. | 2 年前 | |
[test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp llvm-cov -path-equivalence=/tmp,... is used by some checked-in coverage mapping files where the original filename is under /tmp. If the test itself produces the coverage mapping file, there is no need for /tmp. For coverage_emptylines.cpp: the source filename is under the build directory. If the build directory is under /tmp, the path mapping will make llvm-cov fail to find the file. | 5 年前 | |
[test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp llvm-cov -path-equivalence=/tmp,... is used by some checked-in coverage mapping files where the original filename is under /tmp. If the test itself produces the coverage mapping file, there is no need for /tmp. For coverage_emptylines.cpp: the source filename is under the build directory. If the build directory is under /tmp, the path mapping will make llvm-cov fail to find the file. | 5 年前 | |
Rollback 260394 -- 32bit test needs more config support llvm-svn: 260402 | 10 年前 | |
[compiler-rt][test] Require lld for coverage_short_circuit.cpp | 11 个月前 | |
[test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp llvm-cov -path-equivalence=/tmp,... is used by some checked-in coverage mapping files where the original filename is under /tmp. If the test itself produces the coverage mapping file, there is no need for /tmp. For coverage_emptylines.cpp: the source filename is under the build directory. If the build directory is under /tmp, the path mapping will make llvm-cov fail to find the file. | 5 年前 | |
Fix the following tests when running under cross-compilation: Profile-aarch64 :: Linux/comdat_rename.test Profile-aarch64 :: Linux/extern_template.test Profile-aarch64 :: Linux/instrprof-comdat.test Profile-aarch64 :: Linux/instrprof-cs.c The issue is that the created (aarch64) binaries were attempting to run natively instead of running through %run, which guarantees running in the proper environment if the compilation was configured correctly. llvm-svn: 282264 | 9 年前 | |
Minor clean up of profile rt tests llvm-svn: 305113 | 9 年前 | |
Revert "Use uint64_t for branch weights instead of uint32_t" This reverts commit 10f2a0d662d8d72eaac48d3e9b31ca8dc90df5a4. More uint64_t overflows. | 5 年前 | |
[llvm-lit] Fix error in compiler-rt tests when using lit internal shell with env (#102069) When running tests in compiler-rt using the lit internal shell with the following command: LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt one common error that occurs is: 'XRAY_OPTIONS=patch_premain=false:verbosity=1': command not found This error, along with over 50 similar "environment variable not found" errors, appears across 35 files in complier-rt. These errors happen because the environment variables are not being set correctly when the internal shell is used, leading to commands failing due to unrecognized environment variables. This patch addresses the issue by using the env command to properly set the environment variables before running the tests. By explicitly setting the environment variables through env, the internal shell can correctly interpret and apply them, allowing the tests to pass. fixes: #102395 [link to RFC](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179) | 1 年前 | |
Reapply commit b7425e956 The commit b7425e956: [NFC] fix typos is harmless but was reverted by accident. Reapply. | 4 年前 | |
[InstrProf][NFC] Use -profile-correlate flag in tests (#163299) Back in https://github.com/llvm/llvm-project/pull/69493 the -debug-info-correlate LLVM flag was deprecated in favor of -profile-correlate=debug-info. Update all tests to use this new flag. | 9 个月前 | |
[profdata] Skip probes with missing counter and function pointers (#163254) | 8 个月前 | |
[InstrProf][NFC] Use -profile-correlate flag in tests (#163299) Back in https://github.com/llvm/llvm-project/pull/69493 the -debug-info-correlate LLVM flag was deprecated in favor of -profile-correlate=debug-info. Update all tests to use this new flag. | 9 个月前 | |
[PGO] Delay profile dir creation until write Differential Revision: http://reviews.llvm.org/D29960 llvm-svn: 295108 | 9 年前 | |
[PGO] Add Linux specific test cases for profile runtime (second try with more strict config check) Currently, only gc-sections related tests are added. Gold linker currently is required due to PR19161 of bfd linker. llvm-svn: 257456 | 10 年前 | |
[PGO] Add Linux specific test cases for profile runtime (second try with more strict config check) Currently, only gc-sections related tests are added. Gold linker currently is required due to PR19161 of bfd linker. llvm-svn: 257456 | 10 年前 | |
[PGO] Add Linux specific test cases for profile runtime (second try with more strict config check) Currently, only gc-sections related tests are added. Gold linker currently is required due to PR19161 of bfd linker. llvm-svn: 257456 | 10 年前 | |
add -f to rm so the test passes the first time it's run the file file is not present (otherwise it just keeps failing at the rm step and never passes... ) llvm-svn: 271959 | 10 年前 | |
[llvm-profdata] Use semicolon as the delimiter for supplementary profiles. (#75080) When merging instrFDO profiles with afdo profile as supplementary, instrFDO counters for static functions are stored with function's PGO name (with filename.cpp; prefix). - This pull request fixes the delimiter used when a PGO function name is 'normalized' for AFDO look-up. | 2 年前 | |
[Profile] Handle invalid profile data This mostly follows LLVM's InstrProfReader.cpp error handling. Previously, attempting to merge corrupted profile data would result in crashes. See https://crbug.com/1216811#c4. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D104050 | 5 年前 | |
[InstrProf][NFC] Use -profile-correlate flag in tests (#163299) Back in https://github.com/llvm/llvm-project/pull/69493 the -debug-info-correlate LLVM flag was deprecated in favor of -profile-correlate=debug-info. Update all tests to use this new flag. | 9 个月前 | |
[test][profile] Disable failing PPC tests Tests were acidentally included into target executed on sanitizer-ppc64be-linux bot. It does not look like there were OK before. | 2 年前 | |
[profile][test] Add -no-pie to make value profile merge work on Linux with default PIE Alpine enables PIE by default. | 4 年前 | |
Set hidden attribute on lprofMergeValueProfData Summary: The changes in https://reviews.llvm.org/D44847 cause load time failure due to lprofMergeValueProfData in Android libs enabled with profile generation: "dlopen failed: cannot locate symbol "lprofMergeValueProfData" referenced by..." Marking lprofMergeValueProfData as hidden so the correct in-module definition is picked by the linker. Reviewers: davidxl Reviewed By: davidxl Subscribers: efriedma, xur, davidxl, llvm-commits Differential Revision: https://reviews.llvm.org/D55893 llvm-svn: 354064 | 7 年前 | |
[profile][test] Pin Linux/instrprof-value-prof-warn.test to -fuse-ld=bfd To work around https://sourceware.org/bugzilla/show_bug.cgi?id=27490 | 5 年前 | |
[ThinLTO]Clean up 'import-assume-unique-local' flag. (#102424) While manual compiles can specify full file paths and build automation tools use full, unique paths in practice, it's not clear whether it's a general good practice to enforce full paths (fail a build if relative paths are used). NumDefs == 1 condition [1] should hold true for many internal-linkage vtables as long as full paths are indeed used to salvage the marginal performance when local-linkage vtables are imported due to indirect reference. https://github.com/llvm/llvm-project/pull/100448#discussion_r1692068402 has more details. [1] https://github.com/llvm/llvm-project/pull/100448/files#diff-e7cb370fee46f0f773f2b5429dfab36b75126d3909ae98ee87ff3d0e3f75c6e9R215 | 1 年前 | |
[PGO] Reland PGO's Counter Reset and File Dumping APIs #76471 (#78285) https://github.com/llvm/llvm-project/pull/76471 caused buildbot failures on Windows. For more details, see https://github.com/llvm/llvm-project/issues/77546. This PR revises the test and relands https://github.com/llvm/llvm-project/pull/76471. | 2 年前 | |
Fix more compiler-rt tests after #149015. | 1 年前 | |
[llvm-profdata] Add block percent to detailed summary (#105915) | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 10 个月前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 10 年前 | ||
| 11 个月前 | ||
| 5 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 9 个月前 | ||
| 8 个月前 | ||
| 9 个月前 | ||
| 9 年前 | ||
| 10 年前 | ||
| 10 年前 | ||
| 10 年前 | ||
| 10 年前 | ||
| 2 年前 | ||
| 5 年前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 7 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 |