[PATCH] D68626: [Attributor] Use undef for calls with unused arguments.

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 19:46:17 PDT 2019


jdoerfert created this revision.
jdoerfert added reviewers: uenoku, sstefan1.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.

If an argument is unused, we can pass in undef instead of the original
value to remove the use of the original value completely.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68626

Files:
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/FunctionAttrs/align.ll
  llvm/test/Transforms/FunctionAttrs/callbacks.ll
  llvm/test/Transforms/FunctionAttrs/internal-noalias.ll
  llvm/test/Transforms/FunctionAttrs/noalias_returned.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68626.223725.patch
Type: text/x-patch
Size: 7892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191008/88b1a3f0/attachment.bin>


More information about the llvm-commits mailing list