This is an archive of the discontinued LLVM Phabricator instance.

make small memory allocations in loop collapse code on the stack instead of the heap
ClosedPublic

Authored by vadikp-intel on Aug 17 2023, 2:28 PM.

Details

Summary

A few places in the loop collapse support code take small dynamic allocations that introduce a noticeable performance overhead when made on the heap. This change moves small allocations (up to 32 bytes) to the stack instead of the heap.

Diff Detail

Event Timeline

vadikp-intel created this revision.Aug 17 2023, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2023, 2:28 PM
vadikp-intel requested review of this revision.Aug 17 2023, 2:28 PM
natgla accepted this revision.Aug 22 2023, 6:38 PM
This revision is now accepted and ready to land.Aug 22 2023, 6:38 PM
jkrishnavs accepted this revision.Aug 23 2023, 10:16 AM
vadikp-intel accepted this revision.Aug 23 2023, 10:20 AM