Search
Tuesday, 2nd of March 2021, 13:28:44 UTC
13:45:29
Bike
to indicate branch probabilities, LLVM just uses machine integers, which are used as implicit rationals, the denominator being the maximum integer
13:46:31
Bike
so addition is just addition, and multiplication should just be multiplication followed by a shift i think
13:47:33
beach
If Common Lisp rational arithmetic becomes a problem, I'll consider something like that.
13:49:31
Bike
for runtime profiling it makes sense to make it as simple as possible, like incrementing every time you take a branch
13:49:39
Bike
and then normalizing at the end
13:50:16
beach
That too, but I am not planning to do run-time profiling. I hope I can avoid it.
20:32:41
scymtym
Bike: thanks for merging the BIR visualizer. i will probably have a few improvements later
Wednesday, 3rd of March 2021, 1:28:44 UTC