summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-12-16 22:32:21 -0500
committerConnor Abbott <[email protected]>2015-01-23 00:23:51 -0500
commitc8761c8559a006ab30c23963a3641fe05e9e070a (patch)
tree93444dee7fdae98fad0794995702dac9bdb2e77a
parent6be2434031775f4b44f2ff3db99047c0baefa797 (diff)
glsl: fix stale comment
Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Connor Abbott <[email protected]>
-rw-r--r--src/glsl/ir_function_can_inline.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/glsl/ir_function_can_inline.cpp b/src/glsl/ir_function_can_inline.cpp
index 7b15d5df178..3b1d15f80fc 100644
--- a/src/glsl/ir_function_can_inline.cpp
+++ b/src/glsl/ir_function_can_inline.cpp
@@ -26,11 +26,10 @@
*
* Determines if we can inline a function call using ir_function_inlining.cpp.
*
- * The primary restriction is that we can't return from the function
- * other than as the last instruction. We could potentially work
- * around this for some constructs by flattening control flow and
- * moving the return to the end, or by using breaks from a do {} while
- * (0) loop surrounding the function body.
+ * The primary restriction is that we can't return from the function other
+ * than as the last instruction. In lower_jumps.cpp, we can lower return
+ * statements not at the end of the function to other control flow in order to
+ * deal with this restriction.
*/
#include "ir.h"