aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2022-02-14 17:12:34 -0600
committerJohannes Doerfert <johannes@jdoerfert.de>2022-03-28 20:57:52 -0500
commitbb0b23174e4ab963df427393fbf21bddede499bf (patch)
treee3ef9089d5607d079cdb9525a4b8e4eb1b807e5d /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
parent662b9fa02ca217f91e683f456d70fccc7746d31c (diff)
downloadllvm-bb0b23174e4ab963df427393fbf21bddede499bf.zip
llvm-bb0b23174e4ab963df427393fbf21bddede499bf.tar.gz
llvm-bb0b23174e4ab963df427393fbf21bddede499bf.tar.bz2
[InstCombineCalls] Optimize call of bitcast even w/ parameter attributes
Before we gave up if a call through bitcast had parameter attributes. Interestingly, we allowed attributes for the return value already. We now handle both the same way, namely, we drop the ones that are incompatible with the new type and keep the rest. This cannot cause "more UB" than initially present. Differential Revision: https://reviews.llvm.org/D119967
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions