Version dependant slowing down of Gaussian Mixture sampling in Ubuntu 20.04

Perhaps these patterns are more obvious from the inner graphs. When I look at these I see these kind of differences in multiple places (and these types of differences seem like the only ones)

5.9.0
Composite{switch(i4, (i3 + switch(i2, (-1.0 * i0 * i1), 0.0)), 1)} [id MD]
 ← Switch [id BWN] 'o0'
    ├─ i4 [id BWO]
    ├─ add [id BWP]
    │  ├─ i3 [id BWQ]
    │  └─ Switch [id BWR]
    │     ├─ i2 [id BWS]
    │     ├─ mul [id BWT]
    │     │  ├─ -1.0 [id BWU]
    │     │  ├─ i0 [id BWV]
    │     │  └─ i1 [id BWW]
    │     └─ 0.0 [id BWX]
    └─ 1 [id BWY]
5.9.1
Composite{switch(i3, (i2 + switch(i1, (-i0), 0.0)), 1)} [id ME]
 ← Switch [id BXL] 'o0'
    ├─ i3 [id BXM]
    ├─ add [id BXN]
    │  ├─ i2 [id BXO]
    │  └─ Switch [id BXP]
    │     ├─ i1 [id BXQ]
    │     ├─ neg [id BXR]
    │     │  └─ i0 [id BXS]
    │     └─ 0.0 [id BXT]
    └─ 1 [id BXU]

For your info, I did a dif after cleaning the ids so I am also adding that here which might be more useful. It is between 5.9.0 vs 5.9.1

clean_dif.txt (64.1 KB)