Don't assert about missing profile info in createProfileWeightsForLoop
authorHans Wennborg <hans@chromium.org>
Tue, 5 May 2020 13:43:54 +0000 (15:43 +0200)
committerHans Wennborg <hans@chromium.org>
Tue, 5 May 2020 16:59:00 +0000 (18:59 +0200)
commit55b9b11fea3e18b6826c39842bc43877d9eb57fd
treec146b32de6c525a6ead236f6aecbe7cfb29d866c
parent0e6536fd97f999096ec3cb29aebf89ea56d56193
Don't assert about missing profile info in createProfileWeightsForLoop

The compiler shouldn't crash if the profile info is slightly off. We hit
this in Chromium.

Differential revision: https://reviews.llvm.org/D79417
clang/lib/CodeGen/CodeGenPGO.cpp