Add low priority test suggestions for inliner
authorDavid Neto <dneto@google.com>
Wed, 29 Mar 2017 21:11:16 +0000 (17:11 -0400)
committerDavid Neto <dneto@google.com>
Wed, 29 Mar 2017 22:02:40 +0000 (18:02 -0400)
test/opt/inline_test.cpp

index a1a89fa..66eb176 100644 (file)
@@ -1363,9 +1363,21 @@ TEST_F(InlineTest, OpImageAndOpSampledImageOutOfBlock) {
 //    Empty modules
 //    Modules without function definitions
 //    Modules in which all functions do not call other functions
-//    Recursive functions (calling self & calling each other) 
+//    Recursive functions (calling self & calling each other)
 //    Caller and callee both accessing the same global variable
 //    Functions with OpLine & OpNoLine
 //    Others?
 
+// TODO(dneto): Test suggestions from code review
+// https://github.com/KhronosGroup/SPIRV-Tools/pull/534
+//
+//    Callee function returns a value generated outside the callee,
+//      e.g. a constant value. This might exercise some logic not yet
+//      exercised by the current tests: the false branch in the "if"
+//      inside the SpvOpReturnValue case in InlinePass::GenInlineCode?
+//    SampledImage before function call, but callee is only single block.
+//      Then the SampledImage instruction is not cloned. Documents existing
+//      behaviour.
+//    SampledImage after function call. It is not cloned or changed.
+
 }  // anonymous namespace