[all-commits] [llvm/llvm-project] d81064: [ArgPromotion] Add unused-argument.ll test (NFC)

Pavel Samolysov via All-commits all-commits at lists.llvm.org
Wed May 18 00:08:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d81064949f41b95a5a2122889f07c9ffcc875834
      https://github.com/llvm/llvm-project/commit/d81064949f41b95a5a2122889f07c9ffcc875834
  Author: Pavel Samolysov <samolisov at gmail.com>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    A llvm/test/Transforms/ArgumentPromotion/unused-argument.ll

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list