Displaying 2 results from an estimated 2 matches for "entryfreq".
2013 Jun 17
0
[LLVMdev] BlockFrequency spill weights
....getFrequency();
>> }
>>
>> This computation can overflow.
>
> Yep, I went down the easy route and converted it to floating point arithmetic. Is that OK here?
Yes, that should be fine.
+LiveIntervals::getSpillWeight(bool isDef, bool isUse, BlockFrequency freq) {
+ float EntryFreq = BlockFrequency::getEntryFrequency();
+ return (isDef + isUse) * (freq.getFrequency() / EntryFreq);
Nitpick: The float division can be constant folded and turned into a multiplication:
const float Scale = 1.0f / getEntryFrequency();
return (isDef + isUse) * (freq.getFrequency() * Scale);
I...
2013 Jun 17
2
[LLVMdev] BlockFrequency spill weights
[Splitting this out from the original thread to reduce noise in it]
On 17.06.2013, at 18:43, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On Jun 17, 2013, at 7:03 AM, Benjamin Kramer <benny.kra at gmail.com> wrote:
>
>>
>> On 17.06.2013, at 15:56, Diego Novillo <dnovillo at google.com> wrote:
>>
>>> On 2013-06-15 16:39 ,