Displaying 1 result from an estimated 1 matches for "rdensity".
Did you mean:
density
2013 Dec 24
2
[LLVMdev] Quirk in switch lowering
...G/SelectionDAGBuilder.cpp) seems to be a quirk
which can effectively create an else-if chain from a very sparse switch
statement instead of a balanced binary tree.
A possible solution is to weight an isolated single switch label with 0.
To do this one can replace the assignments to LDensity und RDensity by:
volatile double LDensity =
(double)(LSize-1).roundToDouble() /
(LEnd - First + 1ULL).roundToDouble();
volatile double RDensity =
(double)(RSize-1).roundToDouble() /
(Last - RBegin + 1ULL).roundToDouble();
I replac...