Displaying 1 result from an estimated 1 matches for "computeheight".
2014 Nov 26
2
[LLVMdev] crash with large structure values on the stack
...ke the struct_2 type a smaller matrix, like:
%struct_2 = type { [65534 x %struct_1] }
Then you don't get a crash, instead it takes about 20+ minutes to process and you get a lot of movb instructions out - like 200k or so. Callgrind says that 33% of the time consumed is directly in llvm::SUnit::ComputeHeight(). Clearly something has gone badly non-linear for this case.
I looked at what clang is doing for a similar construct and I see it generates a memcpy intrinsic instead of the direct load/store. I'm now doing that in my own front-end, but it seems like this is intended to be supported so I thou...