Reuse the machinery built for replacing global arrays to replace malloc/free as well. Example replacement that was missed earlier:
ll call void bitcast (void (i8*)* @free to void (%struct.fson_string*)*) (%struct.fson_string* %13) #2
Paths
| Differential D36825
[Polly] [ManagedMemoryRewrite] Rewrite malloc, free correctly so it works inside bitcasts as well. ClosedPublic Authored by bollu on Aug 17 2017, 5:13 AM.
Details
Summary Reuse the machinery built for replacing global arrays to replace malloc/free as well. Example replacement that was missed earlier: ll call void bitcast (void (i8*)* @free to void (%struct.fson_string*)*) (%struct.fson_string* %13) #2
Diff Detail
Event Timelinebollu retitled this revision from [ManagedMemoryRewrite] Rewrite malloc, free correctly so it works inside bitcasts as well.
Reuse the machinery built for replacing global arrays to replace malloc/free
as well.
Example replacement that was missed earlier:
```ll
call void... to [Polly] [ManagedMemoryRewrite] Rewrite malloc, free correctly so it works inside bitcasts as well..Aug 17 2017, 5:14 AM
This revision is now accepted and ready to land.Aug 17 2017, 1:18 PM Closed by commit rL311121: [ManagedMemoryRewrite] Rewrite malloc, free correctly inside `Constant`s. (authored by bollu). · Explain WhyAug 17 2017, 1:28 PM This revision was automatically updated to reflect the committed changes. bollu marked 2 inline comments as done.
Revision Contents
Diff 111550 lib/CodeGen/ManagedMemoryRewrite.cpp
test/GPGPU/managed-memory-rewrite-malloc-free-inside-constexpr.ll
|
Newline in between here.