aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2020-09-23 10:48:34 -0500
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2020-09-23 12:21:34 -0500
commite976fb1e54f30403ca31764da69cba3769487e6a (patch)
treea777c7dc248d0b5eff8fb2dad63ade70da2cb982 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent271928792e8016109fdd909889dc6bb582aa6f46 (diff)
downloadllvm-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