| 127 | } |
| 128 | |
| 129 | TEST_F(WhileLoopSimplifierTest, LoopWithZeroIterationSimplified) { |
| 130 | auto m = MakeModuleWithSimpleLoop(/*num_iters=*/0); |
| 131 | ASSERT_TRUE(WhileLoopSimplifier().Run(m.get()).ValueOrDie()); |
| 132 | EXPECT_THAT(m->entry_computation()->root_instruction(), |
| 133 | op::Tuple(op::Constant(), op::Constant())); |
| 134 | } |
| 135 | |
| 136 | TEST_F(WhileLoopSimplifierTest, |
| 137 | LoopWithZeroIterationTupleElementLoopBoundSimplified) { |
nothing calls this directly
no test coverage detected