summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2022-01-24 14:02:20 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2022-01-24 20:37:52 -0500
commit06cfdd5224bf5496e3d3dbdb9f73e77161ad5438 (patch)
tree1eaeeee4f6a9f910963d68c44e2ea846c52167e7 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent16bff06790a7652b282352b07250b627e5787c8c (diff)
[OpenMP][Fix] Properly inherit calling convention
Previously in OpenMPOpt we did not correctly inherit the calling convention of the callee when creating new OpenMP runtime calls. This created issues when the calling convention was changed during `GlobalOpt` but a new call was creating without the correct calling convention. This lead to the call being replaced with a poison value in `InstCombine` due to undefined behaviour and causing large portions of the program to be incorrectly eliminated. This patch correctly inherits the existing calling convention from the callee. Reviewed By: tianshilei1992, jdoerfert Differential Revision: https://reviews.llvm.org/D118059
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions