glsl: Remove ir_binop_greater and ir_binop_lequal expressions
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 8 May 2015 19:55:00 +0000 (12:55 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 30 Oct 2017 16:27:09 +0000 (09:27 -0700)
commit6403efbe7458d05cf117adb41c8a152ed6e28bdd
tree74c392361a08b0f04895ca667d828ac7083ad304
parent34f7e761bc61d3086c1e4e42285c31678b256107
glsl: Remove ir_binop_greater and ir_binop_lequal expressions

NIR does not have these instructions.  TGSI and Mesa IR both implement
them using < and >=, repsectively.  Removing them deletes a bunch of
code and means I don't have to add code to the SPIR-V generator for
them.

v2: Rebase on 2+ years of change... and fix a major bug added in the
rebase.

   text    data     bss     dec     hex filename
8255291  268856  294072 8818219  868e2b 32-bit i965_dri.so before
8254235  268856  294072 8817163  868a0b 32-bit i965_dri.so after
7815339  345592  420592 8581523  82f193 64-bit i965_dri.so before
7813995  345560  420592 8580147  82ec33 64-bit i965_dri.so after

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
14 files changed:
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/builtin_functions.cpp
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir_builder.cpp
src/compiler/glsl/ir_builder_print_visitor.cpp
src/compiler/glsl/ir_expression_operation.py
src/compiler/glsl/ir_validate.cpp
src/compiler/glsl/loop_analysis.cpp
src/compiler/glsl/opt_algebraic.cpp
src/compiler/glsl/tests/lower_jumps/create_test_cases.py
src/intel/compiler/brw_shader.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp