diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2022-02-14 17:12:34 -0600 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2022-03-28 20:57:52 -0500 |
commit | bb0b23174e4ab963df427393fbf21bddede499bf (patch) | |
tree | e3ef9089d5607d079cdb9525a4b8e4eb1b807e5d /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | |
parent | 662b9fa02ca217f91e683f456d70fccc7746d31c (diff) | |
download | llvm-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