pan/bi: Remove bogus assert lowering branches
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 25 Jul 2022 16:06:40 +0000 (12:06 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
commit49e8f660f514942b2650bf1fae88fcea2ac600c6
tree6b868e92459872c8c19ca4d48cb683b1eaba572e
parenta01e6b6dc78febc7605f250d506d1dd605a941f5
pan/bi: Remove bogus assert lowering branches

We can get BRANCHZ.i16 since we lower JUMP early. This seems to have worked
before mainly by chance. With the change to how we optimize, we can get code
sequences like:

   block2 {
      BRANCHZ.i16.eq u256, u256 -> block5
      BRANCHZ.i16.eq u256, u256 -> block4
   } -> block5  from block1

which would choke the assert.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
src/panfrost/bifrost/bifrost_compile.c