From 6d81df6e0c781a1080ede0cbcd45c19d256b0f62 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 6 Dec 2020 22:44:06 -0500 Subject: [PATCH] pan/bi: Mark some instructions as unused Certain transcendental instructions are not even possible to generate since these bits are lowered away before the Bifrost backend is touched, as far as I know. Job management instructions (most interestingly DOORBELL) do not correspond to OpenGL/OpenCL/Vulkan. Segment arithmetic seems mostly useless for real code, any actual use case I can think of is already covered by indirect loads/stores which does the segment arithmetic implicitly. I've never seen this in blob code, probably just a future proofing thing. Dropping these instructions corresponds to a 3% reduction in generated lines of code for the printer, builder, and packer for the new IR. Not a terrible yield for functionality we'll likely never need. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/ISA.xml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/panfrost/bifrost/ISA.xml b/src/panfrost/bifrost/ISA.xml index 9723a7e7a09..9a5df1b2df5 100644 --- a/src/panfrost/bifrost/ISA.xml +++ b/src/panfrost/bifrost/ISA.xml @@ -2319,7 +2319,7 @@ - + @@ -2334,7 +2334,7 @@ - + @@ -3823,11 +3823,11 @@ - + - + @@ -4115,7 +4115,7 @@ - + @@ -4128,12 +4128,12 @@ - + - + @@ -4146,7 +4146,7 @@ - + @@ -4668,7 +4668,7 @@ - + none @@ -4690,11 +4690,11 @@ - + - + @@ -6157,7 +6157,7 @@ - + @@ -7451,7 +7451,7 @@ - + @@ -7466,7 +7466,7 @@ - +