[InstCombine] Bail out of casting calls when a conversion from/to byval is involved.
authorMike Hommey <mh@glandium.org>
Sun, 23 Oct 2022 07:49:16 +0000 (09:49 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 23 Oct 2022 07:49:48 +0000 (09:49 +0200)
commit86e57e66da9380eaa90a9d0830d7f2c5fe87af99
tree25aae6500b4d4390c0f955ec1595c5937c9acbb7
parent00c2eb214d6948b7ac53dc024e8c4c375887d262
[InstCombine] Bail out of casting calls when a conversion from/to byval is involved.

Fixes #58307

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D135738
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/byval.ll
llvm/test/Transforms/InstCombine/cast-byval.ll [new file with mode: 0644]