File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
llvm/include/llvm/Transforms/Utils Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -140,13 +140,9 @@ class PseudoProbeManager {
140
140
// be different and result in different checksums. So we should use the
141
141
// state from the new (available_externally) function, which is saved in its
142
142
// 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.
150
146
if (IsAvailableExternallyLinkage || !Desc)
151
147
return !F.hasFnAttribute (" profile-checksum-mismatch" );
152
148
You can’t perform that action at this time.
0 commit comments