search for: memorybuiltins_8cpp_source

Displaying 1 result from an estimated 1 matches for "memorybuiltins_8cpp_source".

2017 Apr 30
2
allocsize: change from 3.9 to 4.0
Hi all, I added support for the allocsize function attribute to our compiler (LDC), thinking that that would enable removal of function calls when the allocated memory is not used. For example: ``` declare i8* @my_malloc(i32) allocsize(0) define void @test_malloc() { %1 = call i8* @my_malloc(i32 100) ret void } ``` I thought the my_alloc call in test_malloc would be removed, but `opt -O3`