Daniel Martin discovered that insEdges is not being properly specialized, and therefore the insEdge rewrite rule for Patricia trees is not firing. The fix was to mark insEdgesINLINABLE. I would also recommend marking insEdgeNOINLINE [0] or similar to make sure it doesn't inline prematurely and hide from the rule.
Daniel Martin discovered that
insEdges
is not being properly specialized, and therefore theinsEdge
rewrite rule for Patricia trees is not firing. The fix was to markinsEdges
INLINABLE
. I would also recommend markinginsEdge
NOINLINE [0]
or similar to make sure it doesn't inline prematurely and hide from the rule.