[PATCH] D88328: [InferAttrs] Improve DSE for libcalls (partial fix for PR47644)

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 12:06:38 PDT 2020


xbolva00 created this revision.
xbolva00 added a reviewer: fhahn.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
xbolva00 requested review of this revision.

Optimize ```
void f(const char *s) {

  char a[256];
  __builtin_strcpy(a, s);  // dead store

}

  to just empty function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88328

Files:
  llvm/lib/Transforms/Utils/BuildLibCalls.cpp
  llvm/test/Transforms/InferFunctionAttrs/annotate.ll
  llvm/test/Transforms/PhaseOrdering/dse-libcalls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88328.294393.patch
Type: text/x-patch
Size: 8940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200925/5300b754/attachment.bin>


More information about the llvm-commits mailing list