lebedev.ri added a comment. Do you actually need truly random, non-deterministic transform? Can it instead be solved by non-non-deterministic outlining, based on some heuristic? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65376/new/ https://reviews.llvm.org/D65376