User Details
- User Since
- Feb 11 2022, 6:53 PM (84 w, 3 d)
Jul 19 2023
Add back the missing tests
Fixed diff discrepancy, removed asserts for structs/arrays/vectors, updated doc
Addressed some review comments, moved parsing of mtocdata options to AIX.cpp
Jul 18 2023
Addressed review comments
Added diagnostic for when -mtocdata is used with -mcmodel=large
Addressed latest review comments
Jul 13 2023
Rebase and fix last test case (remove include)
Addressed most of the review suggestions (except for the include)
You can use -### to dump cc1 options and find the useful one for your %clang_cc1 command.
Jul 12 2023
%clang and %clang++ are normally only for test/Driver. Use %clang_cc1 for codegen tests.
Jul 11 2023
Jul 10 2023
Jun 29 2023
Added TargetSpecific flag, updated some comments.
Jun 27 2023
Updated clang doc, added assert
Jan 26 2023
@lebedev.ri
Hi again
Seeing as the patch doesn't seem as straightforward as originally thought and people have been opposed to it, do you think it might be better to revert your initial commit until there's a fix everyone is happy with?
Jan 13 2023
LGTM. My main previous concern has been addressed by the {{.*}}
Jan 12 2023
Thanks; my suggestion regarding the location was just a guess, I think you're right that it might not be the problem. Unless someone else brings it up, it's fine to leave it as it is.
I'm not sure if I can share specific details so I'll err on the side of caution and won't. But basically I'll just say it was a very minor change in the expected PGO struct (after the private global).
Yes, autogenerated tests are convenient, but the drawback is that these tests check all of the lines not just what is relevant to the original commit so these test cases are fragile.
Actually, I figured out a way around this failure by slightly modifying the expected output. So no further need for changes here.
Fyi in the future it would be helpful if we just have .* in places that aren't relevant to what the test is supposed to be testing, to avoid issues like this.
Thanks!
Hi @paulkirth
The test llvm/test/Transforms/PGOProfile/prof_avoid_relocs.ll causes a failure on my end with Power. I see that you have a target triple with X86 in it, so I'm wondering if this should be moved to the X86 directory. Or alternatively, you could do what you did in llvm/test/Transforms/PGOProfile/comdat.ll and use regular expressions for the part after "private global," the should fix it too.
Jan 6 2023
Hi @lebedev.ri
I noticed it's been a while since the last review comment in your patch for the issue I reported last month; just wondering if you could ping them again so we can get this resolved. Alternatively, if you think it'll take a while, please revert your initial commit.
Dec 12 2022
This commit seems to increase the cost for expanding trip count scev leading to some loops prevented from being unrolled. For example, in the test case below:
- Prior to this commit isHighCostExpansionHelper returns false (the computed cost 3 < the budget 4) and the loop is unrolled by 8
- Following the commit, isHighCostExpansionHelper returns true (the computed cost 5 > the budget 4) and the loop is no longer unrolled
Please revert the commit until you have a fix ready.
Nov 4 2022
@nikic I'm just wondering if you had a chance to push my commit through
Nov 1 2022
Oct 31 2022
Updated test name
@nikic Thanks for approving! Since this is my first approved patch, I don't think I have commit access. So can you please push it for me (or let me know if I'm wrong)?
Oct 28 2022
Updated the patch with the suggested fix, and updated my LIT test as well as the LIT test from the previous patch. I agree that this is a better approach than my initial try.
Updated LIT test to the suggested reduced test case.
Oct 24 2022
Fyi the build fails due to clang-format, but I checked locally and the improperly formatted lines are not related to my patch
Oct 20 2022
Thank you for all the comments and suggestions! Closing this PR since the consensus is that using a TTI hook to create target-specific IR semantics is undesirable.
Oct 17 2022
Changed to full context differential and provided more information in the description
Oct 14 2022
Oct 7 2022
Sep 14 2022
It should be fixed in https://reviews.llvm.org/D133847
Ah I didn't see that. Thank you!
Hi
This test case is still failing for me due to the lines without -fuse-ld=ldd:
Sep 13 2022
Thanks for reporting the issue.
But I cannot repro the fail.
Do you mind sharing your cmake command?
This test fails because the actual output has <3 x float>* rather than ptr. Could you please fix this test case?
Sep 6 2022
LGTM
Aug 29 2022
Aug 25 2022
I noticed significant performance degradation (~30%) on a spec benchmark due to this commit. isColdBlock doesn't seem to work as expected, because it considered cold a loop that was in a hot function through the profile.
Apr 25 2022
When I compile the following valid test case:
Feb 14 2022
I don't recognize those as tests in flang; do you have a link to the failures? It is highly unlikely that a change to Fortran semantics would affect any test not involving flang.
Feb 11 2022
Just want to give you a heads-up that there are 3 LIT failures for to this commit:
TestCases/Linux/asan_dlopen_test.cpp
TestCases/Integer/sub-overflow.cpp
TestCases/Integer/uadd-overflow.cpp
Please investigate.