anemet added a comment.
Sorted these out in https://reviews.llvm.org/rL319576,
https://reviews.llvm.org/rL319577 and https://reviews.llvm.org/rL319578.
https://reviews.llvm.org/D34082
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://l
anemet added a comment.
Looks like it's a test problem. When I tweak the sample profile file according
to https://clang.llvm.org/docs/UsersManual.html#sample-profile-text-format, I
do get hotness on the remarks.
https://reviews.llvm.org/D34082
__
davide added a comment.
In https://reviews.llvm.org/D34082#942420, @anemet wrote:
> @modocache, @davide, are you guys sure this feature is working? The test
> does not actually check whether hotness is included in the remarks and when I
> run it manually they are missing. In https://reviews.l
anemet added a subscriber: davide.
anemet added a comment.
@modocache, @davide, are you guys sure this feature is working? The test does
not actually check whether hotness is included in the remarks and when I run it
manually they are missing. In https://reviews.llvm.org/D40678, I am filtering
modocache updated this revision to Diff 103647.
modocache added a comment.
Update the sampling profile text so that it produces the hotness expected by
the test. This is ready to go :)
https://reviews.llvm.org/D34082
Files:
lib/Frontend/CompilerInvocation.cpp
test/Frontend/Inputs/optimizat
davidxl accepted this revision.
davidxl added a comment.
This revision is now accepted and ready to land.
lgtm
https://reviews.llvm.org/D34082
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe
modocache updated this revision to Diff 102153.
modocache added a comment.
Thanks for the suggestions! I moved the sampling test close to the instrumented
one, and adjusted bar and foo entry count in the hopes og getting the remarks
to include hotness. No luck, however -- the test currently fail
davidxl added inline comments.
Comment at: test/Frontend/optimization-remark-with-hotness.c:32
+// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness 2>&1 |
FileCheck \
+// RUN: -check-prefix=PGO_ENABLED %s
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-f
anemet added inline comments.
Comment at: test/Frontend/optimization-remark-with-hotness.c:32
+// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness 2>&1 |
FileCheck \
+// RUN: -check-prefix=PGO_ENABLED %s
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-fi
anemet added inline comments.
Comment at: test/Frontend/optimization-remark-with-hotness.c:1-34
+// Generate instrumentation and sampling profile data.
// RUN: llvm-profdata merge \
-// RUN: %S/Inputs/optimization-remark-with-hotness.proftext \
+// RUN: %S/Inputs/optim
modocache added inline comments.
Comment at: test/Frontend/optimization-remark-with-hotness.c:32
+// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness 2>&1 |
FileCheck \
+// RUN: -check-prefix=PGO_ENABLED %s
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main
modocache created this revision.
Prior to this change, using `-fdiagnostics-show-hotness` with a sampling
profile specified via `-fprofile-sample-use=` would result in the Clang
frontend emitting a warning: "argument '-fdiagnostics-show-hotness' requires
profile-guided optimization information". O
12 matches
Mail list logo