[PATCH] D47159: [InstCombine] Format String optimizations

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 21 13:50:36 PDT 2018


xbolva00 created this revision.
Herald added a subscriber: llvm-commits.

Inserts constants into format strings.

printf("Hello, %s", world) - > printf("Hello world")


Repository:
  rL LLVM

https://reviews.llvm.org/D47159

Files:
  include/llvm/Transforms/Utils/BuildLibCalls.h
  lib/Transforms/Utils/BuildLibCalls.cpp
  lib/Transforms/Utils/SimplifyLibCalls.cpp
  test/Transforms/InstCombine/format-str.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47159.147861.patch
Type: text/x-patch
Size: 12027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180521/084d21ad/attachment.bin>


More information about the llvm-commits mailing list