| 100 | } |
| 101 | |
| 102 | TEST_F(ConditionalSimplifierTest, ConditionalGetsInlined) { |
| 103 | auto m = CreateNewVerifiedModule(); |
| 104 | HloComputation* computation = MakeConditional(m.get()); |
| 105 | ASSERT_TRUE(ConditionalSimplifier().Run(m.get()).ValueOrDie()); |
| 106 | EXPECT_THAT(computation->root_instruction(), |
| 107 | op::Add(op::Parameter(), op::Constant())); |
| 108 | } |
| 109 | |
| 110 | TEST_F(ConditionalSimplifierTest, BranchGetsInlined) { |
| 111 | auto m = CreateNewVerifiedModule(); |
nothing calls this directly
no test coverage detected