arcana-lab / noelle

NOELLE Offers Empowering LLVM Extensions
MIT License
72 stars 35 forks source link

Privatizer: transform @malloc and global variables to allocaInst #98

Closed chenxiao2402 closed 9 months ago

chenxiao2402 commented 9 months ago

Add src/tools/privatizer and it will do the following optimization in each hot function:

These optimizations will only be triggered when privatizer ensures they will not change output of the program, or cause segment fault.