This is the first change in a series of changes to fold away comparisons when the pointer does not escape.
If we know that the pointer allocated within a function does not escape, we can fold away comparisons that are done with global pointers
Differential D19276
folding compares if pointers do not escape anna on Apr 19 2016, 11:24 AM. Authored by
Details This is the first change in a series of changes to fold away comparisons when the pointer does not escape. If we know that the pointer allocated within a function does not escape, we can fold away comparisons that are done with global pointers
Diff Detail
Event TimelineComment Actions Minor nits inline.
Comment Actions lgtm with one minor nit
Comment Actions LGTM with nits.
Comment Actions We cannot see the latest comments about the test file in the current diff, because I changed the file name to 'compare-unescaped.ll' instead of 'compared-unescaped.ll' :( |