aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMatthew Voss <matthew.voss@sony.com>2021-01-14 15:31:32 -0800
committerMatthew Voss <matthew.voss@sony.com>2021-02-23 12:51:54 -0800
commit6da7d3141651ed3ef2b5f369e8ca0eb2e5c66778 (patch)
tree2f39cef7e952ad30838009ed456f9f935a066e9b /llvm/lib/IR/Module.cpp
parentf51b3de4e851812b5f7d7c307ddb7b6ec61c05ab (diff)
downloadllvm-6da7d3141651ed3ef2b5f369e8ca0eb2e5c66778.zip
llvm-6da7d3141651ed3ef2b5f369e8ca0eb2e5c66778.tar.gz
llvm-6da7d3141651ed3ef2b5f369e8ca0eb2e5c66778.tar.bz2
[llvm-profdata] Emit Error when Invalid MemOpSize Section is Created by llvm-profdata
Under certain (currently unknown) conditions, llvm-profdata is outputting profiles that have two consecutive entries in the MemOPSize section for the value 0. This causes the PGOMemOPSizeOpt pass to output an invalid switch instruction with two cases for 0. As mentioned, we’re not quite sure what’s causing this to happen, but this patch prevents llvm-profdata from outputting a profile that has this problem and gives an error with a request for a reproducible. Differential Revision: https://reviews.llvm.org/D92074
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions