[ArgPromotion] Add unused-argument.ll test (NFC)
authorPavel Samolysov <samolisov@gmail.com>
Wed, 18 May 2022 07:05:13 +0000 (10:05 +0300)
committerPavel Samolysov <samolisov@gmail.com>
Wed, 18 May 2022 07:05:13 +0000 (10:05 +0300)
commitd81064949f41b95a5a2122889f07c9ffcc875834
tree07829e10fa145c2bdafb4d4e6191651f070210be
parent573a5b58001d6dd86d404832b7b1c45a1b4f4c55
[ArgPromotion] Add unused-argument.ll test (NFC)

If a pointer argument is unused within the callee, this argument should
be removed from the function's signature while all used pointer
arguments should be promoted as it is expected. The ArgumentPromotion
pass doesn't touch unused non-pointer arguments at all.
llvm/test/Transforms/ArgumentPromotion/unused-argument.ll [new file with mode: 0644]