Skip to content
Commit 5f5974ae authored by Dawid Jurczak's avatar Dawid Jurczak Committed by Sanjay Patel
Browse files

[SimplifyLibCalls] Transform printf("%s", str) --> puts(str)/noop

Before this change LLVM cannot simplify printf in following cases:

printf("%s", "") --> noop
printf("%s", str"\n") --> puts(str)

From the other hand GCC can perform such transformations for many years:
https://godbolt.org/z/7nnqbedfe

Differential Revision: https://reviews.llvm.org/D100724
parent 5d493291
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment