Transformation creates big strings for big C values, so bail out for C > 128.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D86004
[SLC] Transform strncpy(dst, "text", C) to memcpy(dst, "text\0\0\0", C) for C <= 128 only ClosedPublic Authored by xbolva00 on Aug 14 2020, 4:10 PM.
Details Summary Transformation creates big strings for big C values, so bail out for C > 128.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 14 2020, 4:28 PM Closed by commit rGf62de7c9c711: [SLC] Transform strncpy(dst, "text", C) to memcpy(dst, "text\0\0\0", C) for C… (authored by xbolva00). · Explain WhyAug 14 2020, 4:53 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 285792 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strncpy-3.ll
|