Skip to content

Commit 892f01a

Browse files
authored
Remove the assertion to unblock breakages (#88035)
as titled.
1 parent 36e2577 commit 892f01a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,9 @@ class PseudoProbeManager {
140140
// be different and result in different checksums. So we should use the
141141
// state from the new (available_externally) function, which is saved in its
142142
// attribute.
143-
assert((LTOPhase != ThinOrFullLTOPhase::ThinLTOPostLink ||
144-
IsAvailableExternallyLinkage || !Desc ||
145-
profileIsHashMismatched(*Desc, Samples) ==
146-
F.hasFnAttribute("profile-checksum-mismatch")) &&
147-
"In post-link, profile checksum matching state doesn't match the "
148-
"internal function's 'profile-checksum-mismatch' attribute.");
149-
(void)LTOPhase;
143+
// TODO: If the function's profile only exists as nested inlinee profile in
144+
// a different module, we don't have the attr mismatch state(unknown), we
145+
// need to fix it later.
150146
if (IsAvailableExternallyLinkage || !Desc)
151147
return !F.hasFnAttribute("profile-checksum-mismatch");
152148

0 commit comments

Comments
 (0)