diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2020-09-23 10:48:34 -0500 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2020-09-23 12:21:34 -0500 |
commit | e976fb1e54f30403ca31764da69cba3769487e6a (patch) | |
tree | a777c7dc248d0b5eff8fb2dad63ade70da2cb982 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 271928792e8016109fdd909889dc6bb582aa6f46 (diff) | |
download | llvm-e976fb1e54f30403ca31764da69cba3769487e6a.zip llvm-e976fb1e54f30403ca31764da69cba3769487e6a.tar.gz llvm-e976fb1e54f30403ca31764da69cba3769487e6a.tar.bz2 |
[EarlyCSE] Fix crash with expensive checks after D87691
D87691 reordered some checks, which turned out to be unsafe. More
specifically, when examining a store instruction, the check against
getOrCreateResult should be done before attempting to call
isSameMemGeneration. Otherwise a crash in MSSA walker can occur.
This patch restores the order of these calls to what it was originally.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions