Mesa (main): microsoft/compiler: Remove algebaric pass for inot

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 10 23:45:34 UTC 2021


Module: Mesa
Branch: main
Commit: 11eb03c44ecec3a10d8717a9ccb7be935b06fb68
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11eb03c44ecec3a10d8717a9ccb7be935b06fb68

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Thu Dec  9 21:12:47 2021 -0800

microsoft/compiler: Remove algebaric pass for inot

Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14140>

---

 src/microsoft/compiler/dxil_nir.h            | 1 -
 src/microsoft/compiler/dxil_nir_algebraic.py | 6 ------
 src/microsoft/compiler/nir_to_dxil.c         | 1 -
 3 files changed, 8 deletions(-)

diff --git a/src/microsoft/compiler/dxil_nir.h b/src/microsoft/compiler/dxil_nir.h
index 440bb8fc070..45fc7fb7524 100644
--- a/src/microsoft/compiler/dxil_nir.h
+++ b/src/microsoft/compiler/dxil_nir.h
@@ -35,7 +35,6 @@ extern "C" {
 bool dxil_nir_lower_8bit_conv(nir_shader *shader);
 bool dxil_nir_lower_16bit_conv(nir_shader *shader);
 bool dxil_nir_lower_x2b(nir_shader *shader);
-bool dxil_nir_lower_inot(nir_shader *shader);
 bool dxil_nir_lower_ubo_to_temp(nir_shader *shader);
 bool dxil_nir_lower_loads_stores_to_dxil(nir_shader *shader);
 bool dxil_nir_lower_atomics_to_dxil(nir_shader *shader);
diff --git a/src/microsoft/compiler/dxil_nir_algebraic.py b/src/microsoft/compiler/dxil_nir_algebraic.py
index cb78d62ea44..df824b338fd 100644
--- a/src/microsoft/compiler/dxil_nir_algebraic.py
+++ b/src/microsoft/compiler/dxil_nir_algebraic.py
@@ -103,10 +103,6 @@ no_16bit_conv += [
   (('u2u32', ('f2f16_rtz', 'a at 32')), ('pack_half_2x16_split', 'a', 0)),
 ]
 
-lower_inot = [
-    (('inot', a), ('ixor', a, -1)),
-]
-
 def main():
     parser = argparse.ArgumentParser()
     parser.add_argument('-p', '--import-path', required=True)
@@ -126,8 +122,6 @@ def run():
                                       no_16bit_conv).render())
     print(nir_algebraic.AlgebraicPass("dxil_nir_lower_x2b",
                                       lower_x2b).render())
-    print(nir_algebraic.AlgebraicPass("dxil_nir_lower_inot",
-                                      lower_inot).render())
 
 if __name__ == '__main__':
     main()
diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c
index 37afc451607..613d15a0ec9 100644
--- a/src/microsoft/compiler/nir_to_dxil.c
+++ b/src/microsoft/compiler/nir_to_dxil.c
@@ -4737,7 +4737,6 @@ optimize_nir(struct nir_shader *s, const struct nir_to_dxil_options *opts)
       if (s->options->lower_int64_options)
          NIR_PASS(progress, s, nir_lower_int64);
       NIR_PASS(progress, s, nir_lower_alu);
-      NIR_PASS(progress, s, dxil_nir_lower_inot);
       NIR_PASS(progress, s, nir_opt_constant_folding);
       NIR_PASS(progress, s, nir_opt_undef);
       NIR_PASS(progress, s, nir_lower_undef_to_zero);



More information about the mesa-commit mailing list