Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Decided to just use "utils/update_cc_test_checks.py" so we can inspect the generate llvm.expect calls directly.
clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp | ||
---|---|---|
147–148 | I thought this is the purpose of the test, which is no longer checked after change? |
clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp | ||
---|---|---|
147–148 | those should be covered by LowerExpectIntrinsic tests |
clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp | ||
---|---|---|
147–148 | The frontend rewrites [[likely]] and [[unlikely]] into calls to llvm.expect. And this is still tested here. Running lower-expect-intrinsic pass to lower the llvm.expect to !prof annotations doesn't need to be tested here as we have separate tests for that pass. |
lgtm, thanks.
clang/test/CodeGenCXX/attr-likelihood-if-branch-weights.cpp | ||
---|---|---|
147–148 | Ah, makes sense. I see that we have existing coverage for lowering llvm.expect to !prof in expect-*.ll, so we're good. |
I thought this is the purpose of the test, which is no longer checked after change?