David Bolvansky
cd93c4ef1a
[InstCombine] snprintf optimizations
...
Reviewers: spatel, efriedma, majnemer, rja, bkramer
Reviewed By: rja, bkramer
Subscribers: mstorsjo, rja, llvm-commits
Differential Revision: https://reviews.llvm.org/D46285
llvm-svn: 332110
2018-05-11 17:50:49 +00:00
Martin Storsjo
86e6742c17
Revert "[InstCombine] snprintf optimizations"
...
This reverts commit SVN r331889, which could trigger failed
assertions for cases where the snprintf function is declared
with a vaguely differing signature (e.g. being defined as
static inline), see PR37408.
llvm-svn: 332043
2018-05-10 21:23:36 +00:00
David Bolvansky
9b5e6e8288
[InstCombine] snprintf optimizations
...
Reviewers: spatel, efriedma, majnemer, rja, bkramer
Reviewed By: rja, bkramer
Subscribers: rja, llvm-commits
Differential Revision: https://reviews.llvm.org/D46285
llvm-svn: 331889
2018-05-09 16:09:31 +00:00
Benjamin Kramer
ccb0fbe9a0
Revert "[InstCombine] snprintf optimizations"
...
This reverts commit r331849. It miscompiles
snprintf(buf, sizeof(buf), "%s", "any constant string); into
memcpy(buf, "%s", sizeof("any constant string"));
llvm-svn: 331866
2018-05-09 11:38:57 +00:00
David Bolvansky
44a37f04b2
[InstCombine] snprintf optimizations
...
Reviewers: spatel, efriedma, majnemer, rja
Reviewed By: rja
Subscribers: rja, llvm-commits
Differential Revision: https://reviews.llvm.org/D46285
llvm-svn: 331849
2018-05-09 06:34:20 +00:00