[llvm-dev] Deleting function IR after codegen
Vedant Kumar via llvm-dev
llvm-dev at lists.llvm.org
Mon Mar 7 18:46:00 PST 2016
Hi all,
>> Did you happen to measure whether it's even worth keeping for
>> --disable-free? I suppose the cost of deleting it might be enough to
>> worry about for very small compilations, in which case we'd probably
>> want to keep the current behavior.
> I didn’t, no. We could though.
>
> I’ve CCed Vedant as I know he looked at the cost of freeing the IR fairly recently. I think he said it was about 3-4% compile time, but he can correct me if i have that wrong.
I measured how much time -disable-free saves for clang. It's 3% of the compile time of clang, opt, and a host of other llvm tools when built cleanly in release mode.
My thoughts on Pete's pass are the same as Hal's, + 1.
vedant
More information about the llvm-dev
mailing list