Wrap tests needing effcee inside SPIRV_EFFCEE

This commit is contained in:
Lei Zhang 2018-09-20 11:51:40 -04:00
parent 6e2dab2ffd
commit 9bfe0eb25e
2 changed files with 3 additions and 1 deletions

View File

@ -2952,6 +2952,7 @@ OpFunctionEnd
EXPECT_NE(loop_2.GetLatchBlock(), loop_2.GetContinueBlock());
}
#ifdef SPIRV_EFFCEE
// Test that a loop with a self-referencing OpPhi instruction is handled
// correctly.
TEST_F(PassClassTest, OpPhiSelfReference) {
@ -2997,6 +2998,7 @@ TEST_F(PassClassTest, OpPhiSelfReference) {
SinglePassRunAndMatch<opt::LoopUnroller>(text, true, kFullyUnroll,
kUnrollFactor);
}
#endif // SPIRV_EFFCEE
} // namespace
} // namespace opt

View File

@ -516,7 +516,6 @@ TEST_F(MergeReturnPassTest, UpdateOrderWhenPredicating) {
SinglePassRunAndMatch<MergeReturnPass>(before, false);
}
*/
#endif
TEST_F(MergeReturnPassTest, StructuredControlFlowBothMergeAndHeader) {
const std::string test =
@ -1020,6 +1019,7 @@ OpFunctionEnd
SinglePassRunAndMatch<MergeReturnPass>(test, false);
}
#endif // SPIRV_EFFCEE
} // namespace
} // namespace opt