addLoopedPass(loop, "x", 3);
assertPasses("x", "x", "x", "x");
}
public void testSchedulingOfLoopablePasses() {
Loop loop = optimizer.addFixedPointLoop();
addLoopedPass(loop, "x", 3);
addLoopedPass(loop, "y", 1);
// The pass iterations can be grouped as: [x y] [x y] [x] [x] [y]
assertPasses("x", "y", "x", "y", "x", "x", "y");
}