diff options
author | Matt Turner <mattst88@gmail.com> | 2016-06-27 14:42:57 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-07-26 12:12:27 -0700 |
commit | d1f6f656973a2e18641441e3c97b30799a82de52 (patch) | |
tree | 9865209c0ac9013e682cde4862ed254a3e1c9a68 /src/compiler/glsl/lower_distance.cpp | |
parent | 5d76690f170de9acc541aa6b4a507ccd20a78158 (diff) | |
download | external_mesa3d-d1f6f656973a2e18641441e3c97b30799a82de52.zip external_mesa3d-d1f6f656973a2e18641441e3c97b30799a82de52.tar.gz external_mesa3d-d1f6f656973a2e18641441e3c97b30799a82de52.tar.bz2 |
glsl: Separate overlapping sentinel nodes in exec_list.
I do appreciate the cleverness, but unfortunately it prevents a lot more
cleverness in the form of additional compiler optimizations brought on
by -fstrict-aliasing.
No difference in OglBatch7 (n=20).
Co-authored-by: Davin McCall <davmac@davmac.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler/glsl/lower_distance.cpp')
-rw-r--r-- | src/compiler/glsl/lower_distance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/lower_distance.cpp b/src/compiler/glsl/lower_distance.cpp index e2d7e2a..9858503 100644 --- a/src/compiler/glsl/lower_distance.cpp +++ b/src/compiler/glsl/lower_distance.cpp @@ -529,8 +529,8 @@ lower_distance_visitor::visit_leave(ir_call *ir) { void *ctx = ralloc_parent(ir); - const exec_node *formal_param_node = ir->callee->parameters.head; - const exec_node *actual_param_node = ir->actual_parameters.head; + const exec_node *formal_param_node = ir->callee->parameters.get_head_raw(); + const exec_node *actual_param_node = ir->actual_parameters.get_head_raw(); while (!actual_param_node->is_tail_sentinel()) { ir_variable *formal_param = (ir_variable *) formal_param_node; ir_rvalue *actual_param = (ir_rvalue *) actual_param_node; |